Skip to content

Commit 3a8522f

Browse files
phillipwoodgitster
authored andcommitted
add -p: don't rely on apply's '--recount' option
Now that add -p counts patches properly it should be possible to turn off the '--recount' option when invoking 'git apply' Signed-off-by: Phillip Wood <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b3e0fcf commit 3a8522f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-add--interactive.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ sub add_untracked_cmd {
677677
sub run_git_apply {
678678
my $cmd = shift;
679679
my $fh;
680-
open $fh, '| git ' . $cmd . " --recount --allow-overlap";
680+
open $fh, '| git ' . $cmd . " --allow-overlap";
681681
print $fh @_;
682682
return close $fh;
683683
}

0 commit comments

Comments
 (0)