git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Shallow clone support in v3.0 and beyond?
@ 2025-08-25 23:34 Bagas Sanjaya
  2025-09-10 11:08 ` Patrick Steinhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Bagas Sanjaya @ 2025-08-25 23:34 UTC (permalink / raw)
  To: Git Mailing List
  Cc: Junio C Hamano, Patrick Steinhardt, Jeff King, brian m. carlson,
	Taylor Blau, Askar Safin

[-- Attachment #1: Type: text/plain, Size: 613 bytes --]

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

-- 
An old man doll... just what I always wanted! - Clara

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Shallow clone support in v3.0 and beyond?
  2025-08-25 23:34 Shallow clone support in v3.0 and beyond? Bagas Sanjaya
@ 2025-09-10 11:08 ` Patrick Steinhardt
  2025-09-10 11:13   ` Bagas Sanjaya
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Steinhardt @ 2025-09-10 11:08 UTC (permalink / raw)
  To: Bagas Sanjaya
  Cc: Git Mailing List, Junio C Hamano, Jeff King, brian m. carlson,
	Taylor Blau, Askar Safin

Hi,

On Tue, Aug 26, 2025 at 06:34:02AM +0700, Bagas Sanjaya wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Shallow clone support in v3.0 and beyond?
  2025-09-10 11:08 ` Patrick Steinhardt
@ 2025-09-10 11:13   ` Bagas Sanjaya
  0 siblings, 0 replies; 3+ messages in thread
From: Bagas Sanjaya @ 2025-09-10 11:13 UTC (permalink / raw)
  To: Patrick Steinhardt
  Cc: Git Mailing List, Junio C Hamano, Jeff King, brian m. carlson,
	Taylor Blau, Askar Safin

On 9/10/25 18:08, Patrick Steinhardt wrote:
> Hi,
> 
> On Tue, Aug 26, 2025 at 06:34:02AM +0700, Bagas Sanjaya wrote:
>> 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).

OK, thanks!

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-10 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 23:34 Shallow clone support in v3.0 and beyond? Bagas Sanjaya
2025-09-10 11:08 ` Patrick Steinhardt
2025-09-10 11:13   ` Bagas Sanjaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).