Fixed git-describe completion.

This commit is contained in:
Sorin Ionescu 2011-05-08 10:47:41 -04:00
parent 4622781122
commit 7c21432102

View file

@ -589,7 +589,7 @@ _git-commit () {
(( $+functions[_git-describe] )) ||
_git-describe () {
_arguments -w -S -s \
'(*)--dirty=-[describe HEAD, adding mark if dirty]::mark'
'(*)--dirty=-[describe HEAD, adding mark if dirty]::mark' \
'--all[use any ref found in "$GIT_DIR/refs/"]' \
'--tags[use any ref found in "$GIT_DIR/refs/tags"]' \
'(--tags)--contains[find the tag after the commit instead of before]' \