|
|
@ -67,9 +67,13 @@ function +vi-git-tagname() {
|
|
|
|
local tag
|
|
|
|
local tag
|
|
|
|
|
|
|
|
|
|
|
|
tag=$(git describe --tags --exact-match HEAD 2>/dev/null)
|
|
|
|
tag=$(git describe --tags --exact-match HEAD 2>/dev/null)
|
|
|
|
|
|
|
|
head=$(git describe --all)
|
|
|
|
|
|
|
|
# Make sure that detached head and tag differ in name
|
|
|
|
|
|
|
|
if [[ "${head}" != "${tag}" ]]; then
|
|
|
|
# Append the tag segment to the branch one
|
|
|
|
# Append the tag segment to the branch one
|
|
|
|
[[ -n "${tag}" ]] && hook_com[branch]+=" $(print_icon 'VCS_TAG_ICON')${tag}"
|
|
|
|
[[ -n "${tag}" ]] && hook_com[branch]+=" $(print_icon 'VCS_TAG_ICON')${tag}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Show count of stashed changes
|
|
|
|
# Show count of stashed changes
|
|
|
|