More direct retrieval of current branch name

This commit is contained in:
Adam Backstrom 2013-02-09 19:07:52 -05:00
parent be74736cb9
commit a8bd7e2434

View file

@ -37,7 +37,7 @@ git_remote_branches() { git branch -r --no-color | sed 's/^[* ] //'; }
git_all_branches() { ( git branch --no-color; git branch -r --no-color) | sed 's/^[* ] //'; }
git_current_branch() {
git branch -l | grep "*" | cut -d " " -f 2
git rev-parse --abbrev-ref HEAD
}
git_now_first_commit() {