]> git.ipfire.org Git - thirdparty/git.git/commit
format-patch: run range-diff with larger creation-factor
authorJunio C Hamano <gitster@pobox.com>
Mon, 6 May 2024 16:40:31 +0000 (09:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 6 May 2024 18:57:22 +0000 (11:57 -0700)
commitc22d41d641711879c57299244ae13b6c4a215fee
tree9b44c53d41b31d75cf154b3137f5cd17bd6977af
parent786a3e4b8d754d2b14b1208b98eeb0a554ef19a8
format-patch: run range-diff with larger creation-factor

We see too often that a range-diff added to format-patch output
shows too many "unmatched" patches.  This is because the default
value for creation-factor is set to a relatively low value.

It may be justified for other uses (like you have a yet-to-be-sent
new iteration of your series, and compare it against the 'seen'
branch that has an older iteration, probably with the '--left-only'
option, to pick out only your patches while ignoring the others) of
"range-diff" command, but when the command is run as part of the
format-patch, the user _knows_ and expects that the patches in the
old and the new iterations roughly correspond to each other, so we
can and should use a much higher default.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-format-patch.txt
builtin/log.c
range-diff.h