git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git add -p: add missing "q" to patch prompt
@ 2009-04-20  9:42 Wincent Colaiuta
  0 siblings, 0 replies; only message in thread
From: Wincent Colaiuta @ 2009-04-20  9:42 UTC (permalink / raw)
  To: git; +Cc: gitster, Wincent Colaiuta

Commit cbd3a01 added a new "q" subcommand to the "git add -p"
command loop, but forgot to add it to the prompt.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
---

I prepared this against current "maint" seeing as the new
1.6.2.4 maintenance release is the first one to have the
"q" subcommand.

 git-add--interactive.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index 566e371..5407b2e 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -1045,7 +1045,7 @@ sub patch_update_file {
 		}
 		print colored $prompt_color, 'Stage ',
 		  ($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),
-		  " [y,n,a,d,/$other,?]? ";
+		  " [y,n,q,a,d,/$other,?]? ";
 		my $line = prompt_single_character;
 		if ($line) {
 			if ($line =~ /^y/i) {
-- 
1.6.2.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-20  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20  9:42 [PATCH] git add -p: add missing "q" to patch prompt Wincent Colaiuta

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).