{"thread":{"id":"18963","subject":"[PATCH] git add -p: add missing \"q\" to patch prompt","startedAt":"2009-04-20T09:42:52Z","lastAt":"2009-04-20T09:42:52Z","messageCount":1,"participants":["Wincent Colaiuta"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"111701","messageId":"1240220572-2183-1-git-send-email-win@wincent.com","threadId":"18963","inReplyTo":null,"subject":"[PATCH] git add -p: add missing \"q\" to patch prompt","fromName":"Wincent Colaiuta","fromEmail":"win@wincent.com","sentAt":"2009-04-20T09:42:52Z","receivedAt":"2009-04-20T09:42:52Z","isPatch":true,"sender":{"key":"greg@hurrell.net","avatar":"https://avatars.githubusercontent.com/u/7074?v=4"},"body":"Commit cbd3a01 added a new \"q\" subcommand to the \"git add -p\"\ncommand loop, but forgot to add it to the prompt.\n\nSigned-off-by: Wincent Colaiuta <win@wincent.com>\n---\n\nI prepared this against current \"maint\" seeing as the new\n1.6.2.4 maintenance release is the first one to have the\n\"q\" subcommand.\n\n git-add--interactive.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-add--interactive.perl b/git-add--interactive.perl\nindex 566e371..5407b2e 100755\n--- a/git-add--interactive.perl\n+++ b/git-add--interactive.perl\n@@ -1045,7 +1045,7 @@ sub patch_update_file {\n \t\t}\n \t\tprint colored $prompt_color, 'Stage ',\n \t\t  ($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),\n-\t\t  \" [y,n,a,d,/$other,?]? \";\n+\t\t  \" [y,n,q,a,d,/$other,?]? \";\n \t\tmy $line = prompt_single_character;\n \t\tif ($line) {\n \t\t\tif ($line =~ /^y/i) {\n-- \n1.6.2.4\n"}]}