]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4014-format-patch.sh
format-patch: support format.mboxrd with --stdout
authorEric Wong <e@80x24.org>
Thu, 22 Dec 2022 20:16:19 +0000 (20:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 25 Dec 2022 07:32:45 +0000 (16:32 +0900)
commit4810946f6032a973ad752d06a32437bc9bb35e67
tree0b81441620ac67b4a99ff69c2217ec1700ac60e0
parent7c2ef319c52c4997256f5807564523dfd4acdfc7
format-patch: support format.mboxrd with --stdout

mboxrd is a more robust output format when used with --stdout
and needs more exposure.  Introducing this config knob lets
users choose the more robust format for all their --stdout
uses.

Relying on --pretty=mboxrd and including all of pretty-formats.txt
in the `git format-patch' documentation would likely be
confusing to users.  Furthermore, this setting is useful across
multiple invocations.  So introduce `format.mboxrd' as a boolean
configuration knob that changes the default --pretty=email format
to --pretty=mboxrd when (and only when) --stdout is in use.

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/format.txt
builtin/log.c
t/t4014-format-patch.sh
t/t4150-am.sh