From: Thomas Rast Date: Sat, 26 Jul 2008 10:26:56 +0000 (+0200) Subject: bash completion: Add long options for 'git describe' X-Git-Tag: v1.6.0-rc1~15 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cbb504c97437653540dc55430a6f64da9ddd24fd;p=git.git bash completion: Add long options for 'git describe' Signed-off-by: Thomas Rast Acked-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 40b3d9973..2fb88a8fe 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -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)" }