]> git.proxmox.com Git - libgit2.git/commit
commit/tag: ensure the message is cleaned up
authornulltoken <emeric.fermas@gmail.com>
Thu, 1 Mar 2012 16:03:32 +0000 (17:03 +0100)
committernulltoken <emeric.fermas@gmail.com>
Mon, 7 May 2012 10:16:04 +0000 (12:16 +0200)
commit458b94503d023a07247153f44d34bcc65e6f8103
tree02a14a37ebde58cdcf7164f0f362c705e510b201
parent9b62e40ecdb92ab7493eac514e1399d791fa6f62
commit/tag: ensure the message is cleaned up

'git commit' and 'git tag -a' enforce some conventions, like cleaning up excess whitespace and making sure that the last line ends with a '\n'. This fix replicates this behavior.

Fix libgit2/libgit2sharp#117
include/git2/commit.h
include/git2/tag.h
src/commit.c
src/message.c [new file with mode: 0644]
src/message.h [new file with mode: 0644]
src/tag.c
tests-clar/object/commit/commitstagedfile.c
tests-clar/object/message.c [new file with mode: 0644]