Skip to content

Commit abac75c

Browse files
committed
Merge branch 'jk/add-i-read-error'
"git add -i" did not notice when the interactive command input stream went away and kept asking. * jk/add-i-read-error: add--interactive: leave main loop on read error
2 parents 04950c7 + a8bec7a commit abac75c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-add--interactive.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ sub patch_update_file {
13561356
$patch_mode_flavour{TARGET},
13571357
" [y,n,q,a,d,/$other,?]? ";
13581358
my $line = prompt_single_character;
1359+
last unless defined $line;
13591360
if ($line) {
13601361
if ($line =~ /^y/i) {
13611362
$hunk[$ix]{USE} = 1;

0 commit comments

Comments
 (0)