@matheusbsbs / matheus-bagliano / commits / a2fc8d6536
Fork 0

git add -p: add missing "q" to patch prompt

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> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Wincent Colaiuta committed Apr 20, 2009 at 11:42 UTC a2fc8d65368a23a8a5f708b36c761c2d0d133ea6
1 file changed +1 -1
git-add--interactive.perl
+1 -1
@@ -1045,7 +1045,7 @@ sub patch_update_file {
1045 }
1046 print colored $prompt_color, 'Stage ',
1047 ($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),
1048 - " [y,n,a,d,/$other,?]? ";
1048 + " [y,n,q,a,d,/$other,?]? ";
1049 my $line = prompt_single_character;
1050 if ($line) {
1051 if ($line =~ /^y/i) {