summaryrefslogtreecommitdiff
path: root/tests/reset
Commit message (Collapse)AuthorAgeFilesLines
* odb: actually insert the empty blob in testsethomson/empty_blobEdward Thomson2016-08-051-1/+5
|
* reset: use real ids for the testsCarlos Martín Nieto2016-04-111-3/+3
| | | | This lets us run with strict object creation on.
* reset test: fix initialization warningEdward Thomson2016-02-111-1/+1
|
* 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-163-16/+42
| | | | | This also brings the soft-reset tests back to life. The function name was missing an underscore, meaning they had not been running.
* Fixed build warningPierre-Olivier Latour2015-03-081-1/+1
|
* Plug a few leaksCarlos Martín Nieto2015-03-042-0/+4
|
* repository: remove log message override for switching the active branchCarlos Martín Nieto2015-03-031-2/+2
| | | | | | We want to use the "checkout: moving from ..." message in order to let git know when a change of branch has happened. Make the convenience functions for this goal write this message.
* reset: remove reflog message overrideCarlos Martín Nieto2015-03-033-46/+30
| | | | | 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-034-27/+27
| | | | | | | | | | 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-033-23/+23
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Reset tests: Use sandboxed indexJiri Pospisil2014-04-251-6/+3
|
* Fix reset for staged deletesRussell Belfer2014-04-211-2/+37
|
* refs: append to the HEAD reflog when updating the current branchCarlos Martín Nieto2014-03-172-8/+12
| | | | | | | | 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-072-0/+10
|
* Add reflog params to git_repository_detach_headBen Straub2014-02-041-2/+2
|
* Add reset tests for reflogBen Straub2014-02-035-0/+98
|
* Add reflog parameters to git_resetBen Straub2014-02-033-14/+14
|
* Reset helpers: use revparse insteadBen Straub2014-02-035-23/+13
|
* index: rename an entry's id to 'id'Carlos Martín Nieto2014-01-252-2/+2
| | | | This was not converted when we converted the rest, so do it now.
* Rename tests-clar to testsBen Straub2013-11-146-0/+602