From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-11.5 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,USER_IN_DEF_DKIM_WL shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 24F451F404 for ; Tue, 11 Sep 2018 17:15:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727792AbeIKWP6 (ORCPT ); Tue, 11 Sep 2018 18:15:58 -0400 Received: from mail-yw1-f54.google.com ([209.85.161.54]:35717 "EHLO mail-yw1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726943AbeIKWP6 (ORCPT ); Tue, 11 Sep 2018 18:15:58 -0400 Received: by mail-yw1-f54.google.com with SMTP id 14-v6so9517364ywe.2 for ; Tue, 11 Sep 2018 10:15:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dM4n96TrOzU/mcUw7W3qg+zYLZrha7j9mPHix6tJEII=; b=Wrmn/b+As/U6Tr2jMAGZWEi6t9Sb+Qn0pQR3qhGCpMsxHkkEC563kcUXdv2T8bUKD8 yOTBEC9SxNSDaEyJkCX4kQcyKnTKPkLbbeTOhUlQTRNy58FimSmxu2kkWJRdZa/bmi00 DAck0wvzwAL+olk8WaHhi1d77UFUSfpzusjIAxaUxKBLYLJtwHHFWYYAYe1nXCp3ypNg yWSClQZiYF4ZRiI++34SDMD8tf75iN0bKAGTQz6RXmH9s/Q01TNDSxCq3i4HqK1uN3Ci +EC51TNsAOzyZprtdPkQf9hEZVxQJQZzIs5UJ7QZyadF3XcvDBIUdO3/PKAbtkN1V2NP Giuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dM4n96TrOzU/mcUw7W3qg+zYLZrha7j9mPHix6tJEII=; b=a/nBDVEOeb2RcjFYxXu9qG0IGTR8/IfzMX1UeE9Uex5tCpCAhUASUSqZlOAGn0lgcS sUrvg+SPpo5rqkRbiFN+CVPsyxUSXEVXgJ10Do9op5tCfneeaKO8FBEQC8agQoXv6Uf9 gnRVY9SuRLI+hfpFR2/vrTYNCd+oxK4XFnzSSp1EPU4o8lumTN6w/KUSyoUmMFSYUG9u AW5cNTMJSMRMiiHJHS7vl4Gip1qN4s1jAOy6yaznG2ubpJaYyk2faEm33t4MtnTHdvfg 34UGdDbVGSkJYBwIRnGT/icFApwt2ybple++8HVSTThcb7sHAadiovImX/+IyP8Ik7Lr mTRg== X-Gm-Message-State: APzg51CeWYQspF11xbEqNxcMBoix2ibrqCWRmonQ5F3/ltzBqScC6Phq +it0BBPDsVaPrE4GLdcZPprlTDLyANYcyaLmdKETuA== X-Google-Smtp-Source: ANB0VdYj10YKswsPQBdNbpxOlNlNOsjc1XvQFwOdABDGTDM7O4BW15TP0jC4wHPxAuPXsIKmt7iIqq5Nj1pwkRY2hrI= X-Received: by 2002:a81:5bc6:: with SMTP id p189-v6mr12814340ywb.370.1536686141341; Tue, 11 Sep 2018 10:15:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stefan Beller Date: Tue, 11 Sep 2018 10:15:29 -0700 Message-ID: Subject: Re: Is it possible to git clone --filter= without any objects? To: Ciro Santilli , Matthew DeVore Cc: git Content-Type: text/plain; charset="UTF-8" Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Tue, Sep 11, 2018 at 12:29 AM Ciro Santilli wrote: > > At v2.19.0 I was trying to clone a fetch just a single directory: > https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/52269934#52269934 > > I got really close with: > > git clone --depth 1 --no-checkout --filter=blob:none \ > "file://$(pwd)/server_repo" local_repo > cd local_repo > git checkout master -- mydir/ > > The only missing thing is that uneeded tree objects are still being fetched. > > If I had a: > > git clone --filter=none > > for example then that would be done. > > Nothing major since those are small, but just looking for the perfect > command :-) You might be pleased to hear about a series floating on the mailing list, that started at https://public-inbox.org/git/cover.1533854545.git.matvore@google.com/ and promised to filter trees away, and its latest version can be found at https://public-inbox.org/git/cover.1536081438.git.matvore@google.com/ Thanks, Stefan