From: "Shawn O. Pearce" <spearce@spearce.org>
To: Thomas Rast <trast@student.ethz.ch>
Cc: git@vger.kernel.org, gitster@pobox.com,
SZEDER GGGbor <szeder@ira.uka.de>
Subject: Re: [PATCH] bash completion: Add long options for 'git describe'
Date: Sat, 26 Jul 2008 16:52:10 -0500 [thread overview]
Message-ID: <20080726215210.GC16219@spearce.org> (raw)
In-Reply-To: <1217068016-10954-1-git-send-email-trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> wrote:
> Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Much shorter, thanks.
Acked-by: Shawn O. Pearce <spearce@spearce.org>
> 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.
prev parent reply other threads:[~2008-07-26 21:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 10:02 [PATCH] bash completion: Add long options for 'git describe' Thomas Rast
2008-07-25 13:15 ` SZEDER Gábor
2008-07-25 16:20 ` Shawn O. Pearce
2008-07-26 10:25 ` Thomas Rast
2008-07-26 10:26 ` Thomas Rast
2008-07-26 21:52 ` Shawn O. Pearce [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080726215210.GC16219@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=szeder@ira.uka.de \
--cc=trast@student.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).