author | Boris Faure <billiob@gmail.com> | |
Sun, 8 May 2011 10:31:02 +0000 (12:31 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 11 May 2011 18:20:28 +0000 (11:20 -0700) | ||
commit | 8b1ae678a33e2d1ccf3080977b692a59acad9b50 | |
tree | ac17ff9704b6f87743f804cebc4485cf11a04d66 | tree | snapshot |
parent | 4c007ae8351a0a2beba57e2930ed21aed141e51e | commit | diff |
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>
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 | diff | blob | history | |
t/t7500-commit.sh | diff | blob | history | |
t/t7500/add-whitespaced-content | [new file with mode: 0755] | blob |