git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git add -p: add missing "q" to patch prompt

From
Wincent Colaiuta <win@wincent.com>
Date
Apr 20, 2009, 09:42 UTC
Message-ID
<1240220572-2183-1-git-send-email-win@wincent.com>

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
Message 1 of 1 in “git add -p: add missing "q" to patch prompt”
  1. git add -p: add missing "q" to patch promptWincent Colaiuta, Apr 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.