Thomas Rast <trast@xxxxxxxxxxxxxxx> wrote: > Signed-off-by: Thomas Rast <trast@xxxxxxxxxxxxxxx> Much shorter, thanks. Acked-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> > 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html