summaryrefslogtreecommitdiff
path: root/tests/reset/hard.c
Commit message (Collapse)AuthorAgeFilesLines
* reset: perform the checkout before moving HEAD or the indexcmn/reset-dir-fileCarlos Martín Nieto2015-12-091-0/+52
| | | | | | This keeps the state of the workdir the same as one from HEAD, removing a source of possible confusion when calculating the work that is to be done.
* conflict tests: use GIT_IDXENTRY_STAGE_SETEdward Thomson2015-05-281-1/+1
|
* Add tests for the annotated versions of ref-modifying functionsCarlos Martín Nieto2015-03-161-1/+12
| | | | | This also brings the soft-reset tests back to life. The function name was missing an underscore, meaning they had not been running.
* Plug a few leaksCarlos Martín Nieto2015-03-041-0/+2
|
* reset: remove reflog message overrideCarlos Martín Nieto2015-03-031-18/+10
| | | | | This function is meant to simulate what git does in the reset command, so we should include the reflog message in that.
* Remove the signature from ref-modifying functionsCarlos Martín Nieto2015-03-031-7/+7
| | | | | | | | | | 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.
* Allow to propagate checkout callbacks to git HARD resetSven Strickroth2014-08-031-7/+7
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* refs: append to the HEAD reflog when updating the current branchCarlos Martín Nieto2014-03-171-4/+6
| | | | | | | | When we update the current branch, we must also append to HEAD's reflog to keep them in sync. This is a bit of a hack, but as git.git says, it covers 100% of default cases.
* Plug a few leaks in the testsCarlos Martín Nieto2014-03-071-0/+4
|
* Add reset tests for reflogBen Straub2014-02-031-0/+27
|
* Add reflog parameters to git_resetBen Straub2014-02-031-4/+4
|
* Reset helpers: use revparse insteadBen Straub2014-02-031-5/+4
|
* index: rename an entry's id to 'id'Carlos Martín Nieto2014-01-251-1/+1
| | | | This was not converted when we converted the rest, so do it now.
* Rename tests-clar to testsBen Straub2013-11-141-0/+200