Vicent Marti
9a78665005
odb: Handle corner cases in git_odb_expand_ids
...
The old implementation had two issues:
1. OIDs that were too short as to be ambiguous were not being handled
properly.
2. If the last OID to expand in the array was missing from the ODB, we
would leak a `GIT_ENOTFOUND` error code from the function.
2016-03-09 11:00:27 +01:00
Edward Thomson
62484f52d1
git_odb_expand_ids: accept git_odb_expand_id array
...
Take (and write to) an array of a struct, `git_odb_expand_id`.
2016-03-08 14:57:20 -05:00
Edward Thomson
4b1f0f79ac
git_odb_expand_ids: rename func, return the type
2016-03-08 11:44:21 -05:00
Edward Thomson
6c04269c8f
git_odb_exists_many_prefixes: query odb for multiple short ids
...
Query the object database for multiple objects at a time, given their
object ID (which may be abbreviated) and optional type.
2016-03-07 16:10:25 -05:00
Edward Thomson
0cee70ebb7
Introduce cl_assert_equal_oid
2014-07-01 14:40:16 -04:00
Russell Belfer
f5753999e4
Add exists_prefix to ODB backend and ODB API
2014-03-04 15:34:23 -08:00
Ben Straub
1782038144
Rename tests-clar to tests
2013-11-14 14:05:52 -08:00