summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorYann Dirson <ydirson@altern.org>2006-06-23 22:04:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-25 07:35:52 (GMT)
commit29f4ad867cd15f4029c280c417f4a0866d5229a9 (patch)
tree5b714456a96bc2fd121452e8a1b77f47fada270c /t
parent817151e61a74241df5b5dd206d27086283f28b84 (diff)
downloadgit-29f4ad867cd15f4029c280c417f4a0866d5229a9.zip
git-29f4ad867cd15f4029c280c417f4a0866d5229a9.tar.gz
git-29f4ad867cd15f4029c280c417f4a0866d5229a9.tar.bz2
git-commit: filter out log message lines only when editor was run.
The current behaviour strips out lines starting with a # even when fed through stdin or -m. This is particularly bad when importing history from another SCM (tailor 0.9.23 uses git-commit). In the best cases all lines are stripped and the commit fails with a confusing "empty log message" error, but in many cases the commit is done, with loss of information. Note that it is quite peculiar to just have "#" handled as a leading comment char here. One commonly meet CVS: or CG: or STG: as prefixes, and using GIT: would be more robust as well as consistent with other commit tools. However, that would break any tool relying on the # (if any). Signed-off-by: Yann Dirson <ydirson@altern.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions