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

Re: [QUESTION] Access to a huge GIT repository.

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Nov 16, 2005, 20:01 UTC
Message-ID
<46a038f90511161201h54c5fa73l20b5dcf3b5c19399@mail.gmail.com>
In-Reply-To
<7vveys8n8q.fsf@assigned-by-dhcp.cox.net>
On 11/17/05, Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> The underlying network transfer program, 'git-clone-pack', can
> be told to clone only specified branches.  If somebody is
> interested, updating the 'git-clone' wrapper to use it should
> not be too hard -- obviously this needs to be done for other
> transports as well, though.

cg-clone already does this. One tricky thing with the selective cloning is that you want to pull the named head plus all its related objects, and then pull only the _relevant_ tags. There's been discussion of pulling tagsrefs+related tag objects and then pruning any tagrefs+tagobjects where the commit is unreachable with the objects you already have. You surely remember my 'git-rev-parse is crashing' thread.

If you just pull tagrefs and all the objects needed for them, chances are you'll get the whole repo anyway ;-)

cheers,
martin
Previous: Junio C HamanoNext: Linus Torvalds
Message 20 of 22 in “[QUESTION] Access to a huge GIT repository.”
  1. FranckNov 16, 2005
  2. Linus TorvaldsNov 16, 2005
  3. FranckNov 17, 2005
  4. Linus TorvaldsNov 17, 2005
  5. FranckNov 17, 2005
  6. Linus TorvaldsNov 17, 2005
  7. FranckNov 19, 2005
  8. Lukas SandströmNov 19, 2005
  9. Junio C HamanoNov 19, 2005
  10. Linus TorvaldsNov 19, 2005
  11. Junio C HamanoNov 19, 2005
  12. FranckNov 21, 2005
  13. Junio C HamanoNov 21, 2005
  14. FranckNov 22, 2005
  15. Junio C HamanoNov 22, 2005
  16. FranckNov 22, 2005
  17. Junio C HamanoNov 22, 2005
  18. FranckNov 22, 2005
  19. Junio C HamanoNov 16, 2005
  20. Martin LanghoffNov 16, 2005
  21. Linus TorvaldsNov 16, 2005
  22. Junio C HamanoNov 16, 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.