Files
git/builtin
Brandon Casey a24a41ea9a git-commit: only append a newline to -m mesg if necessary
Currently, git will append two newlines to every message supplied via
the -m switch.  The purpose of this is to allow -m to be supplied
multiple times and have each supplied string become a paragraph in the
resulting commit message.

Normally, this does not cause a problem since any trailing newlines will
be removed by the cleanup operation.  If cleanup=verbatim for example,
then the trailing newlines will not be removed and will survive into the
resulting commit message.

Instead, let's ensure that the string supplied to -m is newline terminated,
but only append a second newline when appending additional messages.

Fixes the test in t7502.

Signed-off-by: Brandon Casey <drafnel@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-02-19 09:30:50 -08:00
..
2013-02-12 12:23:12 -08:00
2013-02-07 14:41:38 -08:00
2012-09-17 15:59:34 -07:00
2013-01-23 21:19:10 -08:00
2012-10-25 06:42:27 -04:00
2012-11-20 10:32:10 -08:00
2013-02-01 12:40:16 -08:00
2012-09-27 17:57:26 -07:00
2013-01-20 17:06:53 -08:00
2013-01-23 21:19:10 -08:00
2012-09-11 11:36:05 -07:00
2012-12-26 14:46:15 -08:00
2013-02-04 10:23:49 -08:00
2013-01-16 12:48:22 -08:00
2012-10-25 06:42:27 -04:00
2012-09-14 11:53:53 -07:00
2013-02-04 10:25:04 -08:00
2013-02-17 15:25:57 -08:00
2012-11-26 13:27:45 -08:00
2012-10-29 03:08:30 -04:00
2012-11-29 12:52:30 -08:00
2013-01-20 17:06:53 -08:00
2012-10-25 06:42:27 -04:00
2013-01-16 12:48:22 -08:00
2013-01-16 12:48:22 -08:00