Skip to content

Commit 1fa8a66

Browse files
peffgitster
authored andcommitted
add--interactive: drop diff.indentHeuristic handling
Now that diff.indentHeuristic is handled automatically by the plumbing commands, there's no need to propagate it manually. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Marc Branchaud <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 33de716 commit 1fa8a66

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

git-add--interactive.perl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
my $normal_color = $repo->get_color("", "reset");
4747

4848
my $diff_algorithm = $repo->config('diff.algorithm');
49-
my $diff_indent_heuristic = $repo->config_bool('diff.indentheuristic');
5049
my $diff_filter = $repo->config('interactive.difffilter');
5150

5251
my $use_readkey = 0;
@@ -730,9 +729,6 @@ sub parse_diff {
730729
if (defined $diff_algorithm) {
731730
splice @diff_cmd, 1, 0, "--diff-algorithm=${diff_algorithm}";
732731
}
733-
if ($diff_indent_heuristic) {
734-
splice @diff_cmd, 1, 0, "--indent-heuristic";
735-
}
736732
if (defined $patch_mode_revision) {
737733
push @diff_cmd, get_diff_reference($patch_mode_revision);
738734
}

0 commit comments

Comments
 (0)