mirror of
https://github.com/git/git.git
synced 2025-04-17 23:36:06 +00:00
Merge branch 'dm/add-i-edit-abort'
* dm/add-i-edit-abort: add -i: revisit hunk on editor failure
This commit is contained in:
commit
2e2e91d6b2
@ -753,6 +753,10 @@ EOF
|
||||
|| $ENV{VISUAL} || $ENV{EDITOR} || "vi";
|
||||
system('sh', '-c', $editor.' "$@"', $editor, $hunkfile);
|
||||
|
||||
if ($? != 0) {
|
||||
return undef;
|
||||
}
|
||||
|
||||
open $fh, '<', $hunkfile
|
||||
or die "failed to open hunk edit file for reading: " . $!;
|
||||
my @newtext = grep { !/^#/ } <$fh>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user