This commit is contained in:
Michael 2015-07-29 15:02:40 +00:00
commit b6eafd675b

View file

@ -7,6 +7,14 @@ function git_prompt_info() {
fi fi
} }
git_prompt_info_quick() {
ref=$(git symbolic-ref HEAD) 2> /dev/null
if [ "${ref}" != "" ]
then
echo "git:${ref#refs/heads/}"
fi
}
# Checks if working tree is dirty # Checks if working tree is dirty
parse_git_dirty() { parse_git_dirty() {