libgit2/tests
Vicent Marti d4a0b124d0 refs: Partial rewrite for read-only refs
This new version of the references code is significantly faster and
hopefully easier to read.

External API stays the same. A new method `git_reference_reload()` has
been added to force updating a memory reference from disk. In-memory
references are no longer updated automagically -- this was killing us.

If a reference is deleted externally and the user doesn't reload the
memory object, nothing critical happens: any functions using that
reference should fail gracefully (e.g. deletion, renaming, and so on).

All generated references from the API are read only and must be free'd
by the user. There is no reference counting and no traces of generated
references are kept in the library.

There is no longer an internal representation for references. There is
only one reference struct `git_reference`, and symbolic/oid targets are
stored inside an union.

Packfile references are stored using an optimized struct with flex array
for reference names. This should significantly reduce the memory cost of
loading the packfile from disk.
2011-11-06 03:15:34 +01:00
..
resources status: Add a file in the test repository to cover the correct sorting of entries when the working folder is being read 2011-10-29 22:05:56 +02:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING status: get blob object id of file on disk 2011-07-09 13:49:50 +02:00
t00-core.c Merge pull request #456 from brodie/perm-fixes 2011-10-28 19:04:23 -07:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00
t02-data.h Cleanup the testing toolkit 2011-03-03 20:23:52 +02:00
t02-objread.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t02-oids.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t04-commit.c Free all used references in the source tree 2011-11-06 03:15:26 +01:00
t05-revwalk.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t06-index.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t07-hashtable.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00
t08-tag.c Free all used references in the source tree 2011-11-06 03:15:26 +01:00
t09-tree.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t10-refs.c refs: Partial rewrite for read-only refs 2011-11-06 03:15:34 +01:00
t12-repo.c Free all used references in the source tree 2011-11-06 03:15:26 +01:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t15-config.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
t16-remotes.c Make repo config loading automatic or completely explicit 2011-09-27 14:40:56 +02:00
t17-bufs.c Don't leak the buf when testing it 2011-07-12 18:19:56 +02:00
t18-status.c *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
test_helpers.c Merge pull request #456 from brodie/perm-fixes 2011-10-28 19:04:23 -07:00
test_helpers.h *: correct and codify various file permissions 2011-10-14 16:07:47 -07:00
test_lib.c test: Properly show error messages 2011-06-28 21:10:51 +02:00
test_lib.h CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
test_main.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00