summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorTim Clem <timothy.clem@gmail.com>2012-06-15 09:13:59 -0700
committerTim Clem <timothy.clem@gmail.com>2012-06-15 09:13:59 -0700
commitbc2deed0fbb2e18e8654d608537c7dea6e102f63 (patch)
tree9843921df4e840581fb90245fea91a69a70db0cf /src/commit.c
parent86ea6ceda75274621b7d5c3023c5b04da3ab677e (diff)
downloadlibgit2-bc2deed0fbb2e18e8654d608537c7dea6e102f63.tar.gz
Don't strip comments (#) from commit messages by default
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 57eafaa2e..95e398691 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -115,7 +115,7 @@ int git_commit_create(
git_buf_putc(&commit, '\n');
/* Remove comments by default */
- if (git_message_prettify(&cleaned_message, message, 1) < 0)
+ if (git_message_prettify(&cleaned_message, message, 0) < 0)
goto on_error;
if (git_buf_puts(&commit, git_buf_cstr(&cleaned_message)) < 0)