format-patch: show base info before email signature
commit480871e09ed2e5275b4ba16b278681e5a8c122ae
authorJosh Triplett <josh@joshtriplett.org>
Thu, 8 Sep 2016 01:12:01 +0000 (7 18:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2016 17:07:10 +0000 (15 10:07 -0700)
tree4eba0f0e758fd8799de183ceeaddf8f5410f208e
parent6ebdac1bab966b720d776aa43ca188fe378b1f4b
format-patch: show base info before email signature

Any text below the "-- " for the email signature gets treated as part of
the signature, and many mail clients will trim it from the quoted text
for a reply.  Move it above the signature, so people can reply to it
more easily.

Similarly, when producing the patch as a MIME attachment, the
original code placed the base info after the attached part, which
would be discarded.  Move the base info to the end of the part,
still inside the part boundary.

Add tests for the exact format of the email signature, and add tests
to ensure that the base info appears before the email signature when
producing a plain-text output, and that it appears before the part
boundary when producing a MIME attachment.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c
t/t4014-format-patch.sh