libgit2/tests/odb
Carlos Martín Nieto e1ac010148 odb: hardcode the empty blob and tree
git hardocodes these as objects which exist regardless of whether they
are in the odb and uses them in the shell interface as a way of
expressing the lack of a blob or tree for one side of e.g. a diff.

In the library we use each language's natural way of declaring a lack of
value which makes a workaround like this unnecessary. Since git uses it,
it does however mean each shell application would need to perform this
check themselves.

This makes it common work across a range of applications and an issue
with compatibility with git, which fits right into what the library aims
to provide.

Thus we introduce the hard-coded empty blob and tree in the odb
frontend. These hard-coded objects are checked for before going to the
backends, but after the cache check, which means the second time they're
used, they will be treated as normal cached objects instead of creating
new ones.
2014-11-08 20:53:38 +01:00
..
backend Plug a few leaks in the tests 2014-03-07 16:03:15 +01:00
alternates.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
emptyobjects.c odb: hardcode the empty blob and tree 2014-11-08 20:53:38 +01:00
foreach.c Fixed odb foreach test failure for big-endian 64-bit 2014-09-26 12:12:08 +02:00
loose_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
loose.c Fix a number of git_odb_exists_prefix bugs 2014-03-10 11:34:50 -07:00
mixed.c Introduce cl_assert_equal_oid 2014-07-01 14:40:16 -04:00
pack_data_one.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
pack_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed_one.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
sorting.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
streamwrite.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00