summaryrefslogtreecommitdiff
path: root/tests/object/tree/write.c
Commit message (Collapse)AuthorAgeFilesLines
* treebuilder: rename _create() to _new()cmn/treebuilder-newCarlos Martín Nieto2014-12-271-10/+10
| | | | | | This function is a constructor, so let's name it like one and leave _create() for the reference functions, which do create/write the reference.
* treebuilder: take a repository for path validationEdward Thomson2014-12-171-16/+56
| | | | | | Path validation may be influenced by `core.protectHFS` and `core.protectNTFS` configuration settings, thus treebuilders can take a repository to influence their configuration.
* treebuilder: use a map instead of vector to store the entriesCarlos Martín Nieto2014-06-101-2/+6
| | | | | | | | | | | | | | | | | Finding a filename in a vector means we need to resort it every time we want to read from it, which includes every time we want to write to it as well, as we want to find duplicate keys. A hash-map fits what we want to do much more accurately, as we do not care about sorting, but just the particular filename. We still keep removed entries around, as the interface let you assume they were going to be around until the treebuilder is cleared or freed, but in this case that involves an append to a vector in the filter case, which can now fail. The only time we care about sorting is when we write out the tree, so let's make that the only time we do any sorting.
* Further tree building tests with hard pathsRussell Belfer2014-01-031-6/+40
|
* Tree accessor tests with hard path namesRussell Belfer2014-01-031-9/+57
|
* Add git_treebuilder_insert test and clarify docRussell Belfer2013-12-121-15/+69
| | | | | | This wasn't being tested and since it has a callback, I fixed it even though the return value of this callback is not treated like any of the other callbacks in the API.
* Rename tests-clar to testsBen Straub2013-11-141-0/+262