git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is it possible to git clone --filter= without any objects?

From
JTJonathan Tan <jonathantanmy@google.com>
Date
Sep 11, 2018, 17:19 UTC
Message-ID
<CAGf8dgKLz14ijnXwV0Y=M48Rij-scA19E_uXk3pBc0T02oE_0Q@mail.gmail.com>
In-Reply-To
<CAGZ79kYK7ish4_DaZN2bCfZz7LNAjxogQH1k6T=hFcxxkXzJQw@mail.gmail.com>
On Tue, Sep 11, 2018 at 10:15 AM, Stefan Beller <sbeller@google.com> wrote:
Show 5 quoted lines
> 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/

I mentioned this in an email to the original poster in which I forgot to also CC the mailing list:

By "without any objects" in your email subject, do you mean "without blob and tree objects"? If yes, there is some code in the md/filter-trees branch that can do that with a "--filter=tree:0" option. As far as I know, it is not yet in any released version of Git, but hopefully will be in the next one (the "What's Cooking" [1] email mentions that it will be merged to the "next" branch, which is one of the steps before it is released).

[1] https://public-inbox.org/git/xmqqmusw6gbo.fsf@gitster-ct.c.googlers.com/
Previous: Stefan BellerNext: Junio C Hamano
Message 3 of 6 in “Is it possible to git clone --filter= without any objects?”
  1. Ciro SantilliSep 11, 2018
  2. Stefan BellerSep 11, 2018
  3. Jonathan TanSep 11, 2018
  4. Junio C HamanoSep 11, 2018
  5. Ciro SantilliSep 11, 2018
  6. Matthew DeVoreSep 12, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.