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

Re: Shallow clone of a specific git revision?

From
Toon Claes <toon@iotcl.com>
Date
Nov 13, 2024, 10:23 UTC
Message-ID
<87wmh7ig98.fsf@iotcl.com>
In-Reply-To
<ZzNJGHMlxGQyFV_c@kitsune.suse.cz>
Michal Suchánek <msuchanek@suse.de> writes:
Show 7 quoted lines
> 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/
Previous: Michal SuchánekNext: Michal Suchánek
Message 2 of 6 in “Shallow clone of a specific git revision?”
  1. Michal SuchánekNov 12, 2024
  2. Toon ClaesNov 13, 2024
  3. Michal SuchánekNov 13, 2024
  4. David AguilarNov 15, 2024
  5. Jeff KingNov 15, 2024
  6. Michal SuchánekNov 15, 2024

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.