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

Re: efficient cloning

From
Junio C Hamano <junkio@cox.net>
Date
Mar 20, 2006, 21:39 UTC
Message-ID
<7vk6aokd7m.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060320151833.GN18185@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
> I think this sucks the way it is, because you still have only a single
> namespace for remotes (still quite a huge improvement to the current git
> situation), but you can have many upstreams.
Come on, give me a break.

You are commenting on the initial 'git-clone' and specifically on one of its optional feature. What multiple upstreams?

The whole point of what git-clone does on top of making a straight clone of the remote is to give you a reasonable starting point. The traditional "master" -> "origin" mapping is good for cloning a typical single-head repository. If your upsteram has more branches, --use-separate-remote would help you to start your branch namespace uncluttered.

If you want to go fancier after the initial clone to "cg-add-branch" more upstreams, you can implement a customized editor, even a graphical one if you want, that inspects $GIT_DIR/[branches,remotes} _and_ $GIT_DIR/{heads,remotes}, shows the current status, and lets you edit the contents of a $GIT_DIR/remotes/foobar _while_ making matching changes to what are under $GIT_DIR/{heads,remotes}.

Previous: Petr BaudisNext: Petr Baudis
Message 8 of 22 in “efficient cloning”
  1. James CloosMar 19, 2006
  2. Shawn PearceMar 19, 2006
  3. Junio C HamanoMar 19, 2006
  4. James CloosMar 20, 2006
  5. Junio C HamanoMar 20, 2006
  6. Junio C HamanoMar 20, 2006
  7. Petr BaudisMar 20, 2006
  8. Junio C HamanoMar 20, 2006
  9. Petr BaudisMar 20, 2006
  10. Junio C HamanoMar 20, 2006
  11. Josef WeidendorferMar 20, 2006
  12. Junio C HamanoMar 20, 2006
  13. Petr BaudisMar 20, 2006
  14. Junio C HamanoMar 20, 2006
  15. Andreas EricssonMar 21, 2006
  16. Junio C HamanoMar 21, 2006
  17. Jeff KingMar 21, 2006
  18. Junio C HamanoMar 21, 2006
  19. Petr BaudisMar 21, 2006
  20. Josef WeidendorferMar 21, 2006
  21. Junio C HamanoMar 21, 2006
  22. Junio C HamanoMar 21, 2006

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.