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

Re: efficient cloning

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Mar 20, 2006, 16:30 UTC
Message-ID
<200603201730.19373.Josef.Weidendorfer@gmx.de>
In-Reply-To
<7vu09tjy38.fsf@assigned-by-dhcp.cox.net>
On Monday 20 March 2006 09:54, you wrote:
>  * A new flag --use-separate-remote stops contaminating local
>    branch namespace by upstream branch names.  The upstream
>    branch heads are copied in .git/refs/remotes/ instead of

Shouldn't this be .git/refs/remotes/origin/? Ie. different namespaces for different remotes?

Linus wanted to still be able to say "origin" which automatically would map to "remotes/origin/master", where the name of the remote branch (here "master") is the first mentioned in the Pull line of the .git/remotes file in eg.

	git diff origin..master

I am not sure whether we really want "take first refspec mentioned on Pull line", as there can be multiple tracked remote branches with their own local developments... Ie. I want to be able to specify: "The local development branch X is based on the following remote branch Y , which is tracked locally as Z.". This way, you also could warn/prohobit accidential nonsense merges because of wrong use of "git-pull".

Josef
Previous: Junio C HamanoNext: Junio C Hamano
Message 11 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.