libgit2/tests
Vicent Marti 9462c47143 repository: Change ownership semantics
The ownership semantics have been changed all over the library to be
consistent. There are no more "borrowed" or duplicated references.

Main changes:

	- `git_repository_open2` and `3` have been dropped.

	- Added setters and getters to hotswap all the repository owned
	objects:

		`git_repository_index`
		`git_repository_set_index`
		`git_repository_odb`
		`git_repository_set_odb`
		`git_repository_config`
		`git_repository_set_config`
		`git_repository_workdir`
		`git_repository_set_workdir`

	Now working directories/index files/ODBs and so on can be
	hot-swapped after creating a repository and between operations.

	- All these objects now have proper ownership semantics with
	refcounting: they all require freeing after they are no longer
	needed (the repository always keeps its internal reference).

	- Repository open and initialization has been updated to keep in
	mind the configuration files. Bare repositories are now always
	detected, and a default config file is created on init.

	- All the tests affected by these changes have been dropped from the
	old test suite and ported to the new one.
2011-11-26 08:37:08 +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 filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01: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
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c repository: Change ownership semantics 2011-11-26 08:37:08 +01: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 filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01: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 repository: Change ownership semantics 2011-11-26 08:37:08 +01:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t17-bufs.c Don't leak the buf when testing it 2011-07-12 18:19:56 +02:00
t18-status.c Implement p_rename 2011-11-07 20:34:27 +01:00
test_helpers.c test_helpers: do not rely on assert 2011-10-30 13:48:00 +01: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 repository: Change ownership semantics 2011-11-26 08:37:08 +01:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00