|
28 | 28 |
|
29 | 29 | static int diff_detect_rename_default; |
30 | 30 | static int diff_indent_heuristic; /* experimental */ |
31 | | -static int diff_compaction_heuristic; /* experimental */ |
32 | 31 | static int diff_rename_limit_default = 400; |
33 | 32 | static int diff_suppress_blank_empty; |
34 | 33 | static int diff_use_color_default = -1; |
@@ -223,16 +222,8 @@ void init_diff_ui_defaults(void) |
223 | 222 |
|
224 | 223 | int git_diff_heuristic_config(const char *var, const char *value, void *cb) |
225 | 224 | { |
226 | | - if (!strcmp(var, "diff.indentheuristic")) { |
| 225 | + if (!strcmp(var, "diff.indentheuristic")) |
227 | 226 | diff_indent_heuristic = git_config_bool(var, value); |
228 | | - if (diff_indent_heuristic) |
229 | | - diff_compaction_heuristic = 0; |
230 | | - } |
231 | | - if (!strcmp(var, "diff.compactionheuristic")) { |
232 | | - diff_compaction_heuristic = git_config_bool(var, value); |
233 | | - if (diff_compaction_heuristic) |
234 | | - diff_indent_heuristic = 0; |
235 | | - } |
236 | 227 | return 0; |
237 | 228 | } |
238 | 229 |
|
@@ -3380,8 +3371,6 @@ void diff_setup(struct diff_options *options) |
3380 | 3371 | options->xdl_opts |= diff_algorithm; |
3381 | 3372 | if (diff_indent_heuristic) |
3382 | 3373 | DIFF_XDL_SET(options, INDENT_HEURISTIC); |
3383 | | - else if (diff_compaction_heuristic) |
3384 | | - DIFF_XDL_SET(options, COMPACTION_HEURISTIC); |
3385 | 3374 |
|
3386 | 3375 | options->orderfile = diff_order_file_cfg; |
3387 | 3376 |
|
@@ -3876,16 +3865,10 @@ int diff_opt_parse(struct diff_options *options, |
3876 | 3865 | DIFF_XDL_SET(options, IGNORE_WHITESPACE_AT_EOL); |
3877 | 3866 | else if (!strcmp(arg, "--ignore-blank-lines")) |
3878 | 3867 | DIFF_XDL_SET(options, IGNORE_BLANK_LINES); |
3879 | | - else if (!strcmp(arg, "--indent-heuristic")) { |
| 3868 | + else if (!strcmp(arg, "--indent-heuristic")) |
3880 | 3869 | DIFF_XDL_SET(options, INDENT_HEURISTIC); |
3881 | | - DIFF_XDL_CLR(options, COMPACTION_HEURISTIC); |
3882 | | - } else if (!strcmp(arg, "--no-indent-heuristic")) |
3883 | | - DIFF_XDL_CLR(options, INDENT_HEURISTIC); |
3884 | | - else if (!strcmp(arg, "--compaction-heuristic")) { |
3885 | | - DIFF_XDL_SET(options, COMPACTION_HEURISTIC); |
| 3870 | + else if (!strcmp(arg, "--no-indent-heuristic")) |
3886 | 3871 | DIFF_XDL_CLR(options, INDENT_HEURISTIC); |
3887 | | - } else if (!strcmp(arg, "--no-compaction-heuristic")) |
3888 | | - DIFF_XDL_CLR(options, COMPACTION_HEURISTIC); |
3889 | 3872 | else if (!strcmp(arg, "--patience")) |
3890 | 3873 | options->xdl_opts = DIFF_WITH_ALG(options, PATIENCE_DIFF); |
3891 | 3874 | else if (!strcmp(arg, "--histogram")) |
|
0 commit comments