Browse Source

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>
maint
Thomas Rast 17 years ago committed by Junio C Hamano
parent
commit
cbb504c974
  1. 9
      contrib/completion/git-completion.bash

9
contrib/completion/git-completion.bash

@ -667,6 +667,15 @@ _git_commit () @@ -667,6 +667,15 @@ _git_commit ()

_git_describe ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
__gitcomp "
--all --tags --contains --abbrev= --candidates=
--exact-match --debug --long --match --always
"
return
esac
__gitcomp "$(__git_refs)"
}


Loading…
Cancel
Save