Skip to content

Commit cbb504c

Browse files
trastgitster
authored andcommitted
bash completion: Add long options for 'git describe'
Signed-off-by: Thomas Rast <trast@student.ethz.ch> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 35faca1 commit cbb504c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,15 @@ _git_commit ()
667667

668668
_git_describe ()
669669
{
670+
local cur="${COMP_WORDS[COMP_CWORD]}"
671+
case "$cur" in
672+
--*)
673+
__gitcomp "
674+
--all --tags --contains --abbrev= --candidates=
675+
--exact-match --debug --long --match --always
676+
"
677+
return
678+
esac
670679
__gitcomp "$(__git_refs)"
671680
}
672681

0 commit comments

Comments
 (0)