Notation for current branch?
- From
ryenus <ryenus@gmail.com>
- Date
- Aug 28, 2016, 09:58 UTC
- Message-ID
- <CAKkAvazQxhtQauSb3MTVhzoK=xWbjMzQLBPQZUpp1n7VMUMJbQ@mail.gmail.com>
I wonder if there's an easy to use notation to refer to the current branch? which is expected be friendly to scripting.
For HEAD, there's @, which is short and concise.
But for the current branch, it seems one has to either use a not so friendly plumbing command, or grep/parse the output of `git branch`, since the latter doesn't even has any option to only print the plain name of the current branch, or maybe an option can be added to `git branch`?
Thoughts?