Allow selection of different cleanup modes for commit messages
commit5f0657374344a5d8cf5ce5a9920a08c0be422194
authorAlex Riesen <raa.lkml@gmail.com>
Sat, 22 Dec 2007 18:46:24 +0000 (22 19:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 23 Dec 2007 03:55:07 +0000 (22 19:55 -0800)
tree388d086fdee6cddd2fbddb200ee96a399cd10ef5
parent4803466f62777fe3d0b33c8f999ec392f47a5b09
Allow selection of different cleanup modes for commit messages

Although we traditionally stripped away excess blank lines, trailing
whitespaces and lines that begin with "#" from the commit log message,
sometimes the message just has to be the way user wants it.

For instance, a commit message template can contain lines that begin with
"#", the message must be kept as close to its original source as possible
if you are converting from a foreign SCM, or maybe the message has a shell
script including its comments for future reference.

The cleanup modes are default, verbatim, whitespace and strip. The
default mode depends on if the message is being edited and will either
strip whitespace and comments (if editor active) or just strip the
whitespace (for where the message is given explicitely).

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit.txt
builtin-commit.c
t/t7502-commit.sh