Re: efficient cloning
- From
- Josef 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