Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmi Bar <amibar@gmail.com>2014-02-06 11:27:57 +0400
committerAmi Bar <amibar@gmail.com>2014-02-07 15:05:47 +0400
commit0e94aa547257a73bcd9110e13eb9f8caa11b36b3 (patch)
treef4d3f884ee10e92f01eb2700952c167bf0d202ce /LibGit2Sharp/Repository.cs
parentedb140a1a7ffceacf6ddd9b83149281fe1daf5ff (diff)
Added an option to choose if commit message is prettified or not
Prettifing the message includes: * Removing empty lines from the beginning and end. * Removing trailing spaces from every line. * Turning multiple consecutive empty lines between paragraphs into just one empty line. * Ensuring the commit message ends with a newline. * Removing every line starting with "#". Note that this has nothing to do with the core.autocrlf option.
Diffstat (limited to 'LibGit2Sharp/Repository.cs')
-rw-r--r--LibGit2Sharp/Repository.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs
index 7854e8c4..40358826 100644
--- a/LibGit2Sharp/Repository.cs
+++ b/LibGit2Sharp/Repository.cs
@@ -880,7 +880,7 @@ namespace LibGit2Sharp
var parents = RetrieveParentsOfTheCommitBeingCreated(amendPreviousCommit);
- Commit result = ObjectDatabase.CreateCommit(message, author, committer, tree, parents, "HEAD");
+ Commit result = ObjectDatabase.CreateCommit(author, committer, message, true, tree, parents, "HEAD");
Proxy.git_repository_state_cleanup(handle);