Edward Thomson
9bc8c80ffa
odb: actually insert the empty blob in tests
2016-08-05 20:34:19 -04:00
Carlos Martín Nieto
6d22ef7a51
reset: use real ids for the tests
...
This lets us run with strict object creation on.
2016-04-11 11:47:56 -04:00
Edward Thomson
ad8aa11288
reset test: fix initialization warning
2016-02-11 11:26:42 -08:00
Carlos Martín Nieto
465c3b38d5
reset: perform the checkout before moving HEAD or the index
...
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.
2015-12-09 19:16:11 +01:00
Edward Thomson
2f1080ea04
conflict tests: use GIT_IDXENTRY_STAGE_SET
2015-05-28 09:44:22 -04:00
Carlos Martín Nieto
a5815a2afb
Add tests for the annotated versions of ref-modifying functions
...
This also brings the soft-reset tests back to life. The function name
was missing an underscore, meaning they had not been running.
2015-03-16 16:57:30 +01:00
Carlos Martín Nieto
fe21d708b0
Plug a few leaks
2015-03-04 00:29:37 +01:00
Carlos Martín Nieto
23a17803b6
reset: remove reflog message override
...
This function is meant to simulate what git does in the reset command,
so we should include the reflog message in that.
2015-03-03 14:40:50 +01:00
Carlos Martín Nieto
659cf2029f
Remove the signature from ref-modifying functions
...
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.
2015-03-03 14:40:50 +01:00
Sven Strickroth
b8add6c42e
Allow to propagate checkout callbacks to git HARD reset
...
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2014-08-03 16:29:51 +02:00
Carlos Martín Nieto
4b7e1b9e92
refs: append to the HEAD reflog when updating the current branch
...
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.
2014-03-17 17:47:47 +01:00
Carlos Martín Nieto
ae32c54e58
Plug a few leaks in the tests
2014-03-07 16:03:15 +01:00
Ben Straub
86746b4b3a
Add reset tests for reflog
2014-02-03 15:06:47 -08:00
Ben Straub
586be3b889
Add reflog parameters to git_reset
2014-02-03 15:05:55 -08:00
Ben Straub
0d847a3159
Reset helpers: use revparse instead
2014-02-03 14:08:40 -08:00
Carlos Martín Nieto
d541170c77
index: rename an entry's id to 'id'
...
This was not converted when we converted the rest, so do it now.
2014-01-25 08:15:44 +01:00
Ben Straub
1782038144
Rename tests-clar to tests
2013-11-14 14:05:52 -08:00