libgit2/libgit2sharp — Issue #117: Cleanup commit messages in order to mimic git.git behavior
Author: nulltoken
Created: 2012-02-29 10:20:16+00:00
State: open

A stated @Peff in #116, *"'git commit' enforces some conventions, like cleaning up excess whitespace and making sure that the last line ends with a '\n'."*

The following resources show relevant bits of this process:

- https://github.com/git/git/blob/master/builtin/commit.c#L1495-1497
- https://github.com/git/git/blob/master/builtin/commit.c#L908-949
- https://github.com/git/git/blob/master/builtin/stripspace.c#L35-67
- https://github.com/git/git/blob/master/t/t0030-stripspace.sh

/cc @Haacked