diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-05-28 11:17:10 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-28 11:17:10 -0700 |
| commit | b32f298264d9df8febc9942c196eaf7e82c86184 (patch) | |
| tree | 505b9d718fb68565d322cd66e2c22ffb8813d0c1 /range-diff.h | |
| parent | 3acecc04c7f2b90c481062b227b1b8f44af9132c (diff) | |
| parent | c22d41d641711879c57299244ae13b6c4a215fee (diff) | |
| download | git-b32f298264d9df8febc9942c196eaf7e82c86184.tar.xz | |
Merge branch 'jc/format-patch-more-aggressive-range-diff'
The default "creation-factor" used by "git format-patch" has been
raised to make it more aggressively find matching commits.
* jc/format-patch-more-aggressive-range-diff:
format-patch: run range-diff with larger creation-factor
Diffstat (limited to 'range-diff.h')
| -rw-r--r-- | range-diff.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/range-diff.h b/range-diff.h index 04ffe217be..2f69f6a434 100644 --- a/range-diff.h +++ b/range-diff.h @@ -6,6 +6,12 @@ #define RANGE_DIFF_CREATION_FACTOR_DEFAULT 60 +/* + * A much higher value than the default, when we KNOW we are comparing + * the same series (e.g., used when format-patch calls range-diff). + */ +#define CREATION_FACTOR_FOR_THE_SAME_SERIES 999 + struct range_diff_options { int creation_factor; unsigned dual_color:1; |
