summaryrefslogtreecommitdiffstats
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-04-02 19:10:54 +0200
committerJunio C Hamano <gitster@pobox.com>2018-04-02 19:10:55 +0200
commit5f9441769fab51afc9fc96d1e5f7a9edde586088 (patch)
treed44f0582d4e5c7ddbcc1322e48e36188bdc71dca /git-add--interactive.perl
parentMerge branch 'jh/partial-clone' (diff)
parentadd -p: fix 2.17.0-rc* regression due to moved code (diff)
downloadgit-5f9441769fab51afc9fc96d1e5f7a9edde586088.tar.xz
git-5f9441769fab51afc9fc96d1e5f7a9edde586088.zip
Merge branch 'pw/add-p-single'
Hotfix. * pw/add-p-single: add -p: fix 2.17.0-rc* regression due to moved code
Diffstat (limited to 'git-add--interactive.perl')
-rwxr-xr-xgit-add--interactive.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index d190469cd8..c1f52e457f 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -1564,7 +1564,7 @@ sub patch_update_file {
error_msg __("No other hunks to search\n");
next;
}
- if ($1 eq "") {
+ if ($regex eq "") {
print colored $prompt_color, __("search for regex? ");
$regex = <STDIN>;
if (defined $regex) {