Makefile: Make dependency directory creation less noisy
[gitweb.git] / git-add--interactive.perl
index f813ffdaa1526aa68b4ed8e7d4d04b48e270496a..cd43c3491260cb2aa51f0d19fd18ab66e4ad8217 100755 (executable)
@@ -1216,7 +1216,11 @@ sub patch_update_file {
        if (@{$mode->{TEXT}}) {
                unshift @hunk, $mode;
        }
-       if (@{$deletion->{TEXT}} && !@hunk) {
+       if (@{$deletion->{TEXT}}) {
+               foreach my $hunk (@hunk) {
+                       push @{$deletion->{TEXT}}, @{$hunk->{TEXT}};
+                       push @{$deletion->{DISPLAY}}, @{$hunk->{DISPLAY}};
+               }
                @hunk = ($deletion);
        }