summaryrefslogtreecommitdiff
path: root/tests-clay/object
Commit message (Collapse)AuthorAgeFilesLines
* Rename the Clay test suite to ClarVicent Martí2012-01-2412-1277/+0
| | | | | Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!
* Merge pull request #528 from arrbee/valgrind-fixes-2Vicent Martí2012-01-051-1/+0
|\ | | | | Valgrind fixes in smaller pieces
| * Remove repo open immediately after init in testRussell Belfer2012-01-051-1/+0
| | | | | | | | | | Calling git_repository_open immediately after git_repository_init results in memory leaks.
* | clay tests: free resourcesCarlos Martín Nieto2012-01-061-0/+1
|/ | | | Trees, indices and repos need to be freed
* Merge remote-tracking branch 'nulltoken/topix/path_fromurl' into developmentVicent Martí2012-01-041-13/+2
|\ | | | | | | | | | | Conflicts: tests-clay/clay.h tests-clay/clay_main.c
| * util: add git__fromhex()nulltoken2011-12-281-13/+2
| |
* | clay: Move `file_create` to the helpers fileVicent Martí2012-01-021-11/+1
| |
* | add diff-index testsClemens Buchacher2011-12-301-4/+14
| |
* | clay: reset expect_idx in diff_more testClemens Buchacher2011-12-301-6/+13
|/ | | | | | For the diff-index tests, the diff_more test will run multiple times. Reset the expect_idx counter after each test in order to allow this.
* Add unit test for proper init of index entriesRussell Belfer2011-12-181-0/+11
|
* commit: add test to ensure predictability of generation of commit, tree and ↵nulltoken2011-12-142-60/+118
| | | | blob object ids
* Merge remote-tracking branch 'nulltoken/topic/oid-generation' into developmentVicent Marti2011-12-141-0/+60
|\ | | | | | | | | | | Conflicts: tests-clay/clay.h tests-clay/clay_main.c
| * tree: add test to ensure predictability of generation of object idsnulltoken2011-12-041-0/+60
| |
* | clay: add tests for tree diff'ingCarlos Martín Nieto2011-12-031-0/+150
|/ | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Rename all `_close` methodsVicent Marti2011-11-261-2/+2
| | | | | There's no difference between `_free` and `_close` semantics: keep everything with the same name to avoid confusions.
* repository: Change ownership semanticsVicent Marti2011-11-261-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Rename `git_tree_frompath` to `git_tree_get_subtree`Vicent Marti2011-11-181-1/+1
| | | | That makes more sense to me.
* global: Properly use `git__` memory wrappersVicent Marti2011-10-282-2/+2
| | | | | Ensure that all memory related functions (malloc, calloc, strdup, free, etc) are using their respective `git__` wrappers.
* tests-clay: move t01-rawobj.c to clayschu2011-10-249-0/+927
| | | | Signed-off-by: schu <schu-github@schulog.org>
* tree: Add git_tree_frompath() which, given a relative path to a tree entry, ↵nulltoken2011-10-131-0/+76
retrieves the tree object containing this tree entry