Re: efficient cloning
- From
Petr Baudis <pasky@suse.cz>
- Date
- Mar 20, 2006, 15:18 UTC
- Message-ID
- <20060320151833.GN18185@pasky.or.cz>
- In-Reply-To
- <7vu09tjy38.fsf@assigned-by-dhcp.cox.net>
Dear diary, on Mon, Mar 20, 2006 at 09:54:03AM CET, I got a letter where Junio C Hamano <junkio@cox.net> said that...
Show 7 quoted lines
> * 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 > .git/refs/heads/ and .git/remotes/origin file is set up to > reflect this as well. It requires to have fetch/pull update > to understand .git/refs/remotes by Eric Wong to further > update the repository cloned this way.
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. So it would be a quite more reasonable to have:
.git/refs/remotes/<remotename>/<headname>
This is also how I would like to do it for cg-clone -a (which I planned to implement the last weekend... well... ;). Actually, I think I will stay in .git/refs/heads/ at least for now until git versions with .git/refs/remotes/ in the refs search path will be released.
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Right now I am having amnesia and deja-vu at the same time. I think I have forgotten this before.