Code

git.el: Add commands for cherry-pick and revert.
[git.git] / git-add--interactive.perl
index 551b4475b5a384e12fe2b616dfdbc093ab382081..3bf0cda4eef6714b09df0360d48c12796598071a 100755 (executable)
@@ -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*$/) {