summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2008-07-26 12:26:56 +0200
committerJunio C Hamano <gitster@pobox.com>2008-07-27 14:14:00 -0700
commitcbb504c97437653540dc55430a6f64da9ddd24fd (patch)
tree9efca465bedff1d2cc7bcfb83ff33b03cb287f52 /contrib
parent35faca1f99b5bb8a729a4e9718f5577432572332 (diff)
downloadgit-cbb504c97437653540dc55430a6f64da9ddd24fd.tar.gz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 40b3d99737..2fb88a8fef 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)"
}