summaryrefslogtreecommitdiff
path: root/tests/commit/commit.c
Commit message (Collapse)AuthorAgeFilesLines
* commit: Fix memory leak in test suitevmg/commit-leakVicent Marti2015-12-171-1/+1
|
* commit: introduce `git_commit_body`Patrick Steinhardt2015-12-011-0/+39
| | | | | | | | | It is already possible to get a commit's summary with the `git_commit_summary` function. It is not possible to get the remaining part of the commit message, that is the commit message's body. Fix this by introducing a new function `git_commit_body`.
* Fix git_commit_summary to convert newlines to spaces even afterStjepan Rajko2015-11-031-2/+6
| | | | whitespace. Collapse spaces around newlines for the summary.
* Introduce cl_assert_equal_oidEdward Thomson2014-07-011-1/+1
|
* commit: safer commit creation with reference updatecmn/commit-create-safeCarlos Martín Nieto2014-04-301-0/+4
| | | | | | | | | | | | | | The current version of the commit creation and amend function are unsafe to use when passing the update_ref parameter, as they do not check that the reference at the moment of update points to what the user expects. Make sure that we're moving history forward when we ask the library to update the reference for us by checking that the first parent of the new commit is the current value of the reference. We also make sure that the ref we're updating hasn't moved between the read and the write. Similarly, when amending a commit, make sure that the current tip of the branch is the commit we're amending.
* Summarize empty messagesEdward Thomson2014-01-221-0/+4
|
* Introduce git_revert to revert a single commitEdward Thomson2013-12-021-0/+29
|
* Rename tests-clar to testsBen Straub2013-11-141-0/+46