libgit2/tests/object
Carlos Martín Nieto 217c029b54 commit: safer commit creation with reference update
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.
2014-04-30 00:41:37 +02:00
..
blob Update git_blob_create_fromchunks callback behavr 2013-12-11 10:57:50 -08:00
commit commit: safer commit creation with reference update 2014-04-30 00:41:37 +02:00
raw Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tag Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
tree Merge pull request #2027 from libgit2/rb/only-windows-is-windows 2014-02-05 13:07:46 -08:00
cache.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
lookup.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
lookupbypath.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
message.c messsage: use git_buf in prettify() 2014-01-27 04:44:06 +01:00
peel.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
shortid.c Add failing test for git_object_short_id 2014-03-10 11:35:14 -07:00