summaryrefslogtreecommitdiff
path: root/tests/diff/rename.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-03-10 10:53:39 -0700
committerRussell Belfer <rb@github.com>2014-03-10 11:34:50 -0700
commit894990788771bef6ca20398e46b217817b8e0db8 (patch)
tree70f93107a116e6a81cee68abb4b2b526fc6c760c /tests/diff/rename.c
parent9af14886a94ca4d08c7af1ba84b21cba40fce34c (diff)
downloadlibgit2-894990788771bef6ca20398e46b217817b8e0db8.tar.gz
Fix a number of git_odb_exists_prefix bugs
The git_odb_exists_prefix API was not dealing correctly when a later backend returned GIT_ENOTFOUND even if an earlier backend had found the object. Additionally, the unit tests were not properly exercising the API and had a couple mistakes in checking the results. Lastly, since the backends are not expected to behavior correctly unless all bytes of the short id are zero except for the prefix, this makes the ODB prefix APIs explicitly clear out the extra bytes so the user doesn't have to be as careful.
Diffstat (limited to 'tests/diff/rename.c')
0 files changed, 0 insertions, 0 deletions