mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 15:36:22 -04:00
More direct retrieval of current branch name
This commit is contained in:
parent
be74736cb9
commit
a8bd7e2434
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue