format-patch: Add a signature option (--signature)
commit6622d9c7103525bb8673f93df4104ab2a46cb174
authorStephen Boyd <bebarino@gmail.com>
Wed, 16 Jun 2010 05:59:25 +0000 (15 22:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jun 2010 17:08:59 +0000 (16 10:08 -0700)
tree627447656621a876401a1739f431518468531031
parent6068cdcc832040ac644c56953be0670bb09afd12
format-patch: Add a signature option (--signature)

By default, git uses the version string as the signature for all
patches output by format-patch. Many employers (mine included)
require the use of a signature on all outgoing mails. In a
format-patch | send-email workflow there isn't an easy way to modify
the signature without breaking the pipe and manually replacing the
version string with the signature required. Instead of doing all that
work, add an option (--signature) and a config variable
(format.signature) to replace the default git version signature when
formatting patches.

This does modify the original behavior of format-patch a bit. First
off the version string is now placed in the cover letter by default.
Secondly, once the configuration variable format.signature is added
to the .config file there is no way to revert back to the default
git version signature. Instead, specifying the --no-signature option
will remove the signature from the patches entirely.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-format-patch.txt
builtin/log.c
t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^
t/t4014-format-patch.sh