format-patch: allow forcing the use of in-body From: header
commit34bc1b1045af6ad813f4de662a453b3c77ba65a7
authorJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2022 21:38:36 +0000 (29 14:38 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Aug 2022 21:39:13 +0000 (29 14:39 -0700)
treea7806e9d87faec1d80e9b29d089c206af169a29d
parentb84d01393679d0e09d6fd198e771f2d1f5563986
format-patch: allow forcing the use of in-body From: header

Users may be authoring and committing their commits under the same
e-mail address they use to send their patches from, in which case
they shouldn't need to use the in-body From: line in their outgoing
e-mails.  At the receiving end, "git am" will use the address on the
"From:" header of the incoming e-mail and all should be well.

Some mailing lists, however, mangle the From: address from what the
original sender had; in such a situation, the user may want to add
the in-body "From:" header even for their own patches.

"git format-patch --[no-]force-in-body-from" was invented for such
users.

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