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

Re: How to clone-pack the HEAD?

From
Petr Baudis <pasky@suse.cz>
Date
Dec 18, 2005, 00:38 UTC
Message-ID
<20051218003803.GT22159@pasky.or.cz>
In-Reply-To
<7vpsnzq66x.fsf@assigned-by-dhcp.cox.net>

Dear diary, on Thu, Dec 15, 2005 at 06:29:10AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...

Show 11 quoted lines
> Junio C Hamano <junkio@cox.net> writes:
> 
> > 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.
> 
> ... and another way would be to do this; I'll put this (with
> fixes if there is some needed) in "master" tonight.

Thanks! This makes it work very nicely and exactly the way I want, even giving git-fetch-pack-compatible output so I can seamlessly switch between the two commands. Very nice!

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
Previous: Petr BaudisNext: Petr Baudis
Message 9 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.