Re: [PATCH] Teach git push .git/branches shorthand
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 9, 2005, 02:48 UTC
- Message-ID
- <7vvf2fyge4.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <200508081822.24582.Josef.Weidendorfer@gmx.de>
Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:
Show 7 quoted lines
>> My point being that I still can say >> >> git pull x some_non_default_head >> >> with a file "x" in .git/branches. > > Is this currently possible?
Not right now, but that is the plan.
Show 5 quoted lines
> My understanding of .git/branches was that Cogito uses this as mapping of > remote branches/heads to local branches/refs, and not to store shortcuts for > remote git repositories. > IMHO, the above usage is a kind of "type mismatch", as the "x" already > contains the branch.
You can look at it this way: "x which already contains the branch" can specify the default branch if command line did not say anything, but the command line can override it.