Re: [PATCH 4/8] rev-parse: teach "git rev-parse --symbolic" to print the full ref name
- From
Daniel Barkalow <barkalow@iabervon.org>
- Date
- Oct 27, 2007, 21:53 UTC
- Message-ID
- <Pine.LNX.4.64.0710271748440.7345@iabervon.org>
- In-Reply-To
- <11935038083369-git-send-email-prohaska@zib.de>
On Sat, 27 Oct 2007, Steffen Prohaska wrote:
Show 8 quoted lines
> "git rev-parse --symbolic" used to return the ref name as it was > specified on the command line. This is changed to returning the > full matched ref name, i.e. "git rev-parse --symbolic master" > now typically returns "refs/heads/master". > > Note, this changes output of an established command. It might > break existing setups. I checked that it does not break scripts > in git.git.
I think this makes the --create option to push unnecessary, as interactive users could use a suggested explicit value (or whatever they actually meant), while scripts could replace $name with $(git rev-parse --symbolic $name) as easily as they could add --create, and by more explicit as to what they're doing.
-Daniel *This .sig left intentionally blank*