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 <peff@peff.net> Signed-off-by: Marc Branchaud <marcnarc@xiplink.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed May 8, 2017 at 12:03 UTC 1fa8a66bf76953c6fb9cfe5e17b26a3a0920f538
1 file changed -4
git-add--interactive.perl
-4
@@ -46,7 +46,6 @@ my ($diff_new_color) =
46 my $normal_color = $repo->get_color("", "reset");
47
48 my $diff_algorithm = $repo->config('diff.algorithm');
49 -my $diff_indent_heuristic = $repo->config_bool('diff.indentheuristic');
49 my $diff_filter = $repo->config('interactive.difffilter');
50
51 my $use_readkey = 0;
@@ -730,9 +729,6 @@ sub parse_diff {
729 if (defined $diff_algorithm) {
730 splice @diff_cmd, 1, 0, "--diff-algorithm=${diff_algorithm}";
731 }
733 - if ($diff_indent_heuristic) {
734 - splice @diff_cmd, 1, 0, "--indent-heuristic";
735 - }
732 if (defined $patch_mode_revision) {
733 push @diff_cmd, get_diff_reference($patch_mode_revision);
734 }