summaryrefslogtreecommitdiff
path: root/tests-clay/object/tree
Commit message (Collapse)AuthorAgeFilesLines
* Rename the Clay test suite to ClarVicent Martí2012-01-242-243/+0
| | | | | Clay is the name of a programming language on the makings, and we want to avoid confusions. Sorry for the huge diff!
* clay tests: free resourcesCarlos Martín Nieto2012-01-061-0/+1
| | | | Trees, indices and repos need to be freed
* 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.
* commit: add test to ensure predictability of generation of commit, tree and ↵nulltoken2011-12-141-60/+0
| | | | 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.
* 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