Code

Do not strip empty lines / trailing spaces from a commit message template
authorBoris Faure <billiob@gmail.com>
Sun, 8 May 2011 10:31:02 +0000 (12:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 May 2011 18:20:28 +0000 (11:20 -0700)
commit8b1ae678a33e2d1ccf3080977b692a59acad9b50
treeac17ff9704b6f87743f804cebc4485cf11a04d66
parent4c007ae8351a0a2beba57e2930ed21aed141e51e
Do not strip empty lines / trailing spaces from a commit message template

Templates should be just that: A form that the user fills out, and forms
have blanks. If people are attached to not having extra whitespace in the
editor, they can simply clean up their templates.

Added test with editor adding even more whitespace.

Signed-off-by: Boris Faure <billiob@gmail.com>
Based-on-patch-by:Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/commit.c
t/t7500-commit.sh
t/t7500/add-whitespaced-content [new file with mode: 0755]