2015-08-27 00:20:13 +09:00
|
|
|
function git_branch_name -d "Get current branch name"
|
|
|
|
git_is_repo; and begin
|
2016-07-22 13:27:38 -03:00
|
|
|
command git symbolic-ref --short HEAD ^/dev/null;
|
|
|
|
or command git show-ref --head -s --abbrev | head -n1 ^/dev/null
|
2015-08-27 00:20:13 +09:00
|
|
|
end
|
|
|
|
end
|