git function to determine git branch name

This commit is contained in:
Bruno Pinto 2012-07-23 10:58:43 -03:00
commit 1c6a7f8de3

View File

@ -0,0 +1,3 @@
function git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end