Re: [PATCH] Teach git push .git/branches shorthand
- From
Matthias Urlichs <smurf@smurf.noris.de>
- Date
- Aug 11, 2005, 16:29 UTC
- Message-ID
- <pan.2005.08.11.16.29.34.384813@smurf.noris.de>
- In-Reply-To
- <200508081822.24582.Josef.Weidendorfer@gmx.de>
Hi, Josef Weidendorfer wrote:
> 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.
That seems to be the case, yes.
I'd argue that the shortcut idea is inherently more flexible, as it can emulate mappings, but not vice versa -- for instance, if my local branch foo corresponds to more than one remote branch, .git/branches/* cannot comprehend that idea.
That being said, I do like Junio's
>> $ cat .git/remotes/ko >> URL: kernel.org:/pub/scm/git/git.git/ >> Fetch-Reference: master:ko-master pu:ko-pu rc:ko-rc >> Push-Reference: master pu rc
idea. A lot.
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
Sometimes I think my head is like a gas tank -- you have to be really
careful what you put into it 'cos it might affect the whole system.
-- I'VE HEARD THE MERMAIDS SINGING