format.attach: allow empty value to disable multi-part messages
commit50bebf98d96a6ccf2ca5c76da5dd8afff6933a4c
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Feb 2023 23:33:37 +0000 (17 15:33 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Feb 2023 23:43:09 +0000 (17 15:43 -0800)
tree3c5b3e93f843a32c2eff9cccce393cc0267b56ef
parentd9d677b2d8cc5f70499db04e633ba7a400f64cbf
format.attach: allow empty value to disable multi-part messages

When a lower precedence configuration file (e.g. /etc/gitconfig)
defines format.attach in any way, there was no way to disable it in
a more specific configuration file (e.g. $HOME/.gitconfig).

Change the behaviour of setting it to an empty string.  It used to
mean that the result is still a multipart message with only dashes
used as a multi-part separator, but now it resets the setting to
the default (which would be to give an inline patch, unless other
command line options are in effect).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/format.txt
builtin/log.c
t/t4014-format-patch.sh