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

Re: How to clone-pack the HEAD?

From
Junio C Hamano <junkio@cox.net>
Date
Dec 15, 2005, 01:53 UTC
Message-ID
<7vlkynrurh.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vpsnzrv43.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 7 quoted lines
> Petr Baudis <pasky@suse.cz> writes:
>
>> Except that I cannot do the guessing git-clone-pack does (without
>> fetching all the branches)
>
> Exactly my point.  If you are not getting all the branches, you
> are not cloning but doing something else.

Not really. I take this back. What you want to do I did not understand well enough.

HEAD is kinda special. A hack I can think of is to do ls-remote first and do the guess clone-pack does for full clone case, and then give a specific branch name to clone. That might work.

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “How to clone-pack the HEAD?”
  1. Petr BaudisDec 15, 2005
  2. Junio C HamanoDec 15, 2005
  3. Petr BaudisDec 15, 2005
  4. Junio C HamanoDec 15, 2005
  5. Junio C HamanoDec 15, 2005
  6. Junio C HamanoDec 15, 2005
  7. Junio C HamanoDec 15, 2005
  8. Petr BaudisDec 18, 2005
  9. Petr BaudisDec 18, 2005
  10. Petr BaudisDec 15, 2005

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.