format-patch: make newline after signature conditional
authorJeff King <redacted>
Wed, 21 May 2014 21:07:51 +0000 (14:07 -0700)
committerJunio C Hamano <redacted>
Wed, 21 May 2014 21:27:48 +0000 (14:27 -0700)
commitc6076e2b4aaebd4a49b01255fe8c67405704aa72
treef50fda65508a8183988f26dcdbe6f5d4e51de7c7
parent8ced8e40ac07c1b13b2edbb459d37b9b2d7275d6
format-patch: make newline after signature conditional

When we print an email signature, we print the divider
"-- \n", then the signature string, then two newlines.

Usually the signature is a one-liner (and the default is just the
git version), so the extra newline makes sense.  But one could
easily specify a multi-line signature, like this:

  git format-patch --signature='this is my long signature

  it has multiple lines
  ' ...

and it may end with its own newline, in which case we do not have
to add yet another one.

Signed-off-by: Jeff King <redacted>
Signed-off-by: Jeremiah Mahler <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/log.c
git clone https://git.99rst.org/PROJECT