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>
This commit is contained in:

committed by
Junio C Hamano

parent
cafa56702b
commit
a2fc8d6536
@ -1045,7 +1045,7 @@ sub patch_update_file {
|
|||||||
}
|
}
|
||||||
print colored $prompt_color, 'Stage ',
|
print colored $prompt_color, 'Stage ',
|
||||||
($hunk[$ix]{TYPE} eq 'mode' ? 'mode change' : 'this hunk'),
|
($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;
|
my $line = prompt_single_character;
|
||||||
if ($line) {
|
if ($line) {
|
||||||
if ($line =~ /^y/i) {
|
if ($line =~ /^y/i) {
|
||||||
|
Reference in New Issue
Block a user