git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mårten Kongstad" <marten.kongstad@gmail.com>
To: git@vger.kernel.org
Cc: gitster@pobox.com, felipe.contreras@gmail.com, peff@peff.net,
	manlio.perillo@gmail.com,
	"Mårten Kongstad" <marten.kongstad@gmail.com>
Subject: [PATCH] completion: remove duplicate block for "git commit -c"
Date: Wed, 24 Apr 2013 22:49:06 +0200	[thread overview]
Message-ID: <1366836546-11081-1-git-send-email-marten.kongstad@gmail.com> (raw)

Remove one of two consecutive, identical blocks for "git commit -c".

Signed-off-by: Mårten Kongstad <marten.kongstad@gmail.com>
---
 contrib/completion/git-completion.bash |    7 -------
 1 file changed, 7 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 93eba46..f67b0f0 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1182,13 +1182,6 @@ _git_commit ()
 		;;
 	esac
 
-	case "$prev" in
-	-c|-C)
-		__gitcomp_nl "$(__git_refs)" "" "${cur}"
-		return
-		;;
-	esac
-
 	case "$cur" in
 	--cleanup=*)
 		__gitcomp "default strip verbatim whitespace
-- 
1.7.9.5

             reply	other threads:[~2013-04-24 20:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-24 20:49 Mårten Kongstad [this message]
2013-04-24 23:04 ` [PATCH] completion: remove duplicate block for "git commit -c" Junio C Hamano

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=1366836546-11081-1-git-send-email-marten.kongstad@gmail.com \
    --to=marten.kongstad@gmail.com \
    --cc=felipe.contreras@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=manlio.perillo@gmail.com \
    --cc=peff@peff.net \
    /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).