Git development
 help / color / mirror / Atom feed
From: Toon Claes <toon@iotcl.com>
To: "Michal Suchánek" <msuchanek@suse.de>, git@vger.kernel.org
Subject: Re: Shallow clone of a specific git revision?
Date: Wed, 13 Nov 2024 11:23:47 +0100	[thread overview]
Message-ID: <87wmh7ig98.fsf@iotcl.com> (raw)
In-Reply-To: <ZzNJGHMlxGQyFV_c@kitsune.suse.cz>

Michal Suchánek <msuchanek@suse.de> writes:

> 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?

--
Toon



[1]: https://lore.kernel.org/git/20240927085438.1010431-1-toon@iotcl.com/

  reply	other threads:[~2024-11-13 10:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 12:24 Shallow clone of a specific git revision? Michal Suchánek
2024-11-13 10:23 ` Toon Claes [this message]
2024-11-13 10:29   ` Michal Suchánek
2024-11-15  5:00     ` David Aguilar
2024-11-15  9:37       ` Jeff King
2024-11-15 10:43       ` Michal Suchánek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmh7ig98.fsf@iotcl.com \
    --to=toon@iotcl.com \
    --cc=git@vger.kernel.org \
    --cc=msuchanek@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox