From: Shawn O. Pearce Date: Sat, 26 Jul 2008 21:52:10 GMT Subject: Re: [PATCH] bash completion: Add long options for 'git describe' Message-ID: <20080726215210.GC16219@spearce.org> In-Reply-To: <1217068016-10954-1-git-send-email-trast@student.ethz.ch> Thomas Rast wrote: > Signed-off-by: Thomas Rast Much shorter, thanks. Acked-by: Shawn O. Pearce > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > index 3b04934..4ae8b36 100755 > --- a/contrib/completion/git-completion.bash > +++ b/contrib/completion/git-completion.bash > @@ -665,6 +665,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)" > } > -- Shawn.