summaryrefslogtreecommitdiff
path: root/tests/commit/write.c
Commit message (Collapse)AuthorAgeFilesLines
* commit: add function to attach a signature to a commitcmn/commit-with-signatureCarlos Martín Nieto2016-03-151-0/+100
| | | | | In combination with the function which creates a commit into a buffer, this allows us to more easily create signed commits.
* commit: split creating the commit and writing it outcmn/commit-to-memoryCarlos Martín Nieto2016-03-081-0/+39
| | | | | | Sometimes you want to create a commit but not write it out to the objectdb immediately. For these cases, provide a new function to retrieve the buffer instead of having to go through the db.
* turn on strict object validation by defaultEdward Thomson2016-02-281-4/+4
|
* git_commit: validate tree and parent idsEdward Thomson2016-02-281-5/+106
| | | | | When `GIT_OPT_ENABLE_STRICT_OBJECT_CREATION` is turned on, validate the tree and parent ids given to commit creation functions.
* Fix git_commit_summary to convert newlines to spaces even afterStjepan Rajko2015-11-031-1/+1
| | | | whitespace. Collapse spaces around newlines for the summary.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-1/+1
| | | | | | | | | | The signature for the reflog is not something which changes dynamically. Almost all uses will be NULL, since we want for the repository's default identity to be used, making it noise. In order to allow for changing the identity, we instead provide git_repository_set_ident() and git_repository_ident() which allow a user to override the choice of signature.
* Introduce cl_assert_equal_oidEdward Thomson2014-07-011-1/+1
|
* Fix reflog message when creating commitsBen Straub2014-02-041-1/+14
|
* refs: remove the _with_log differentiationCarlos Martín Nieto2014-01-151-1/+1
| | | | | | Any well-behaved program should write a descriptive message to the reflog whenever it updates a reference. Let's make this more prominent by removing the version without the reflog parameters.
* Rename tests-clar to testsBen Straub2013-11-141-0/+147