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
Matthew DeVore <matvore@google.com>
Date
Sep 12, 2018, 01:12 UTC
Message-ID
<CAMfpvhKYN3E+AJdwFM3k9e4awg5sW8dnVnmROA4W10mQMxWB9A@mail.gmail.com>
In-Reply-To
<CAFXrp_emK=k7by5pM5=GpsixJVeeJhT89-Cgq3JYbn5yg14CpQ@mail.gmail.com>
On Tue, Sep 11, 2018 at 11:30 AM Ciro Santilli <ciro.santilli@gmail.com> wrote:
> The mentioned --filter=tree:0 would basically do what I want it seems,
> good to hear!. I wonder why not call it tree:none though to match
> blob:none.

There are some plans of making tree: accept positive integers in order to filter out files greater than that depth. e.g. tree:1 would fetch all blobs and tree objects directly contained by the tree. tree:2 would fetch every object tree:1 does plus anything referred to directly by those objects.

Previous: Ciro Santilli
Message 6 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.