@matheusbsbs / matheus-bagliano / commits / cbb504c974
Fork 0

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>

Thomas Rast committed Jul 26, 2008 at 12:26 UTC cbb504c97437653540dc55430a6f64da9ddd24fd
1 file changed +9
contrib/completion/git-completion.bash
+9
@@ -667,6 +667,15 @@ _git_commit ()
667
668 _git_describe ()
669 {
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
679 __gitcomp "$(__git_refs)"
680 }
681