Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add map_user() and clear_mailmap() to mailmap
[gitweb.git]
/
git-add--interactive.perl
diff --git
a/git-add--interactive.perl
b/git-add--interactive.perl
index 551b4475b5a384e12fe2b616dfdbc093ab382081..3bf0cda4eef6714b09df0360d48c12796598071a 100755
(executable)
--- a/
git-add--interactive.perl
+++ b/
git-add--interactive.perl
@@
-994,6
+994,9
@@
sub patch_update_file {
}
print "go to which hunk$extra? ";
$response = <STDIN>;
+ if (!defined $response) {
+ $response = '';
+ }
chomp $response;
}
if ($response !~ /^\s*\d+\s*$/) {