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

Re: Shallow clone support in v3.0 and beyond?

From
Patrick Steinhardt <ps@pks.im>
Date
Sep 10, 2025, 11:08 UTC
Message-ID
<aMFcH2nfKO-DZcwm@pks.im>
In-Reply-To
<aKzy6naLtdeq7Tgn@archie.me>
Hi,
On Tue, Aug 26, 2025 at 06:34:02AM +0700, Bagas Sanjaya wrote:
Show 13 quoted lines
> Hi,
> 
> Askar Safin <safinaskar@zohomail.com> posted on the ML about his complaints
> regarding grafts removal in v3.0+ (see [1] for the full thread). He also
> briefly mentioned future of shallow clones (aka git clone --depth=1).
> 
> The question is: If grafts support is removed, then how can shallow clones
> be implemented in terms of git-replace(1)? What about its implementation
> details? How about unshallowing (git fetch --unshallow)?
> 
> Thanks.
> 
> [1]: https://lore.kernel.org/git/198c29e9058.119e3a5c065010.5888624019176274871@zohomail.com/T/#t

I think the BreakingChanges document could use a revamp in that regard. The mechanism used to implement shallow clones is of course _not_ going away, and the internal mechanism to facilitate this will go away.

So the intention really only to remove ".git/info/grafts" as a user-visible mechanism. Users should exclusively use git-replace(1).

Patrick
Previous: Bagas SanjayaNext: Bagas Sanjaya
Message 2 of 3 in “Shallow clone support in v3.0 and beyond?”
  1. Bagas SanjayaAug 25, 2025
  2. Patrick SteinhardtSep 10, 2025
  3. Bagas SanjayaSep 10, 2025

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.