Added a function to the core GIT library that enables Cygwin users to display GIT information in a fork-friendly manner.

This commit is contained in:
Michael Sena 2015-08-12 09:56:42 +10:00
commit 58b69ddf5d

View file

@ -7,6 +7,13 @@ function git_prompt_info() {
fi
}
function git_cygwin_prompt_info_quick() {
ref=$(command git symbolic-ref -q --short HEAD 2> /dev/null)
if [[ "${ref}" != "" ]]; then
echo "git:${ref}"
fi
}
# Checks if working tree is dirty
parse_git_dirty() {