Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | treebuilder: rename _create() to _new()cmn/treebuilder-new | Carlos Martín Nieto | 2014-12-27 | 1 | -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 validation | Edward Thomson | 2014-12-17 | 1 | -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 entries | Carlos Martín Nieto | 2014-06-10 | 1 | -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 paths | Russell Belfer | 2014-01-03 | 1 | -6/+40 |
| | |||||
* | Tree accessor tests with hard path names | Russell Belfer | 2014-01-03 | 1 | -9/+57 |
| | |||||
* | Add git_treebuilder_insert test and clarify doc | Russell Belfer | 2013-12-12 | 1 | -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 tests | Ben Straub | 2013-11-14 | 1 | -0/+262 |