Re: git-branch --print-current
- From
- Karl Chen <quarl@cs.berkeley.edu>
- Date
- Jan 4, 2009, 02:18 UTC
- Message-ID
- <quack.20090103T1818.lth7i5bg6f7@roar.cs.berkeley.edu>
- In-Reply-To
- <402731c90901012026j470f35ffj1eaa189a837054f3@mail.gmail.com>
>>>>> On 2009-01-01 20:26 PST, David Aguilar writes:
David> You might want to use 'git symbolic-ref' instead.
David> $ git symbolic-ref HEAD | sed -e 's,refs/heads/,,'
David> masterThanks, that is better.
How about an option to git-symbolic-ref that gets rid of the refs/heads/ ?