Thread (6 messages) 6 messages, 4 authors, 2024-11-15

Re: Shallow clone of a specific git revision?

From: Michal Suchánek <hidden>
Date: 2024-11-13 10:29:50

On Wed, Nov 13, 2024 at 11:23:47AM +0100, Toon Claes wrote:
Michal Suchánek [off-list ref] writes:
quoted
Hello,

Looking through clone man page it supports shallow clones of branches
and tags only.

Would it be possible to do shallow clone of a specific revision,
and checkout specific revision on clone?
Hi Michal,

I'm working on a patch, and I've submitted a first version [1] a little
while ago to allow users to pass a reference on git-clone(1). Would this
change fit your needs, or what else would you like to support?
[1]: https://lore.kernel.org/git/20240927085438.1010431-1-toon@iotcl.com/ (local)
Hello,

that slightly expands the available options but it does not make it
possible to clone an arbitrary revision, ie. specified by a SHA

Thanks

Michal
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help