summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc91e1b)
raw | patch | inline | side by side (parent: dc91e1b)
author | knittl <knittl89@googlemail.com> | |
Wed, 1 Dec 2010 13:17:00 +0000 (14:17 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 1 Dec 2010 19:51:59 +0000 (11:51 -0800) |
The bash prompt would display a commit's object name when having checked
out a lightweight tag. Provide `--tags` to `git describe` in the completion
script, so it will display lightweight tag names, as it already does for
annotated tags.
Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
out a lightweight tag. Provide `--tags` to `git describe` in the completion
script, so it will display lightweight tag names, as it already does for
annotated tags.
Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | patch | blob | history |
index 67569901e71e5062199e48304afc424f15b57ba1..82e6609689d7a72ff28420a1ee23923194e91c36 100755 (executable)
(describe)
git describe HEAD ;;
(* | default)
- git describe --exact-match HEAD ;;
+ git describe --tags --exact-match HEAD ;;
esac 2>/dev/null)" ||
b="$(cut -c1-7 "$g/HEAD" 2>/dev/null)..." ||