Commit Diff
- Commit:
df581e4b0ed88464667ca88d51a6b93d1159c0c0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
- Message:
- set diff box recursion limit to UINT_MAX by default In practice, recursion is already limited by our Myers max-effort cut and this heuristic should generally provide a better split than a limit on the number of diff boxes. A recursion limit is only required for diff configs that do not include the Myers algorithm, which we currently don't have. Discussed with Neels
- Actions:
- Patch | Tree
--- lib/diff_main.c +++ lib/diff_main.c @@ -602,7 +602,7 @@ diff_main(const struct diff_config *config, struct dif struct diff_state state = { .result = result, - .recursion_depth_left = config->max_recursion_depth ? : 32, + .recursion_depth_left = config->max_recursion_depth ? : UINT_MAX, .kd_buf = NULL, .kd_buf_size = 0, };