Skip to content

Commit a2fc8d6

Browse files
wincentgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cafa567 commit a2fc8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-add--interactive.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ sub patch_update_file {
10451045
}
10461046
print colored $prompt_color, 'Stage ',
10471047
($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),
1048-
" [y,n,a,d,/$other,?]? ";
1048+
" [y,n,q,a,d,/$other,?]? ";
10491049
my $line = prompt_single_character;
10501050
if ($line) {
10511051
if ($line =~ /^y/i) {

0 commit comments

Comments
 (0)