summaryrefslogtreecommitdiff
path: root/tests/index
Commit message (Collapse)AuthorAgeFilesLines
* index tests: test capitalization before mkdirhf/master_patchEdward Thomson2014-12-181-2/+4
|
* Plug leaksCarlos Martín Nieto2014-12-181-0/+2
|
* Create miscapitialised dirs for case-sensitive filesystemsCarlos Martín Nieto2014-12-181-0/+4
| | | | | We need these directories to exist so cl_git_mkfile() can create the files we ask it to.
* treebuilder: take a repository for path validationEdward Thomson2014-12-171-0/+21
| | | | | | Path validation may be influenced by `core.protectHFS` and `core.protectNTFS` configuration settings, thus treebuilders can take a repository to influence their configuration.
* index: Check for valid paths before creating an index entryVicent Marti2014-12-161-8/+93
|
* Spelling fixesWill Stamper2014-12-041-1/+1
|
* Clean up some memory leaksEdward Thomson2014-10-261-0/+2
|
* tree-cache: correct the entry_count calculationCarlos Martín Nieto2014-10-221-5/+5
| | | | | | | | | | | | | The entry_count field is the amount of index entries covered by a particular cache entry, that is how many files are there (recursively) under a particular directory. The current code that attemps to do this is severely defincient and is trying to count the amount of children, which always comes up to zero. We don't even need to recount, since we have the information during the cache creation. We can take that number and keep it, as we only ever invalidate or replace.
* index: make sure to write cached subtrees if parent is invalidatedCarlos Martín Nieto2014-10-101-0/+53
| | | | | If e.g. the root tree is invalidated, we still want to write out its children, since those may still have valid cache entries.
* index: write out the tree cache extensionCarlos Martín Nieto2014-10-101-6/+79
| | | | | | | | | | Keeping the cache around after read-tree is only one part of the optimisation opportunities. In order to share the cache between program instances, we need to write the TREE extension to the index. Do so, taking the opportunity to rename 'entries' to 'entry_count' to match the name given in the format description. The included test is rather trivial, but works as a sanity check.
* index: add tests for the tree cacheCarlos Martín Nieto2014-10-101-0/+110
| | | | | These test that we invalidate at the right levels and that we remove the tree cache when clearing the index.
* Allow to propagate checkout callbacks to git HARD resetSven Strickroth2014-08-032-6/+6
| | | | Signed-off-by: Sven Strickroth <email@cs-ware.de>
* Introduce cl_assert_equal_oidEdward Thomson2014-07-016-53/+53
|
* Plug a leak in the testsCarlos Martín Nieto2014-06-031-0/+2
|
* index: check for valid filemodes on addcmn/index-add-modesCarlos Martín Nieto2014-05-221-0/+15
|
* Make core.safecrlf work on LF-ending platformsRussell Belfer2014-05-191-0/+18
| | | | | | If you enabled core.safecrlf on an LF-ending platform, we would error even for files with all LFs. We should only be warning on irreversible mappings, I think.
* Some vector utility tweaksRussell Belfer2014-04-171-17/+3
| | | | | This is just laying some groundwork for internal index changes that I'm working on.
* git_checkout_opts -> git_checkout_optionsBen Straub2014-03-062-6/+6
|
* Staticize file-local variablesBen Straub2014-02-241-1/+1
|
* Tests for crlf filtering into the repositoryEdward Thomson2014-02-091-0/+136
|
* Merge pull request #2099 from libgit2/bs/more-reflog-stuffRussell Belfer2014-02-072-11/+11
|\ | | | | More reflogness
| * Add reflog parameters to git_resetBen Straub2014-02-032-6/+6
| |
| * Reset helpers: use revparse insteadBen Straub2014-02-032-5/+5
| |
* | Fix typo setting sorted flag when reloading indexRussell Belfer2014-02-041-0/+34
| | | | | | | | | | | | | | This fixes a typo I made for setting the sorted flag on the index after a reload. That typo didn't actually cause any test failures so I'm also adding a test that explicitly checks that the index is correctly sorted after a reload when ignoring case and when not.
* | Convert pqueue to just be a git_vectorRussell Belfer2014-02-041-4/+4
|/ | | | | | | | | | | | | This updates the git_pqueue to simply be a set of specialized init/insert/pop functions on a git_vector. To preserve the pqueue feature of having a fixed size heap, I converted the "sorted" field in git_vectors to a more general "flags" field so that pqueue could mix in it's own flag. This had a bunch of ramifications because a number of places were directly looking at the vector "sorted" field - I added a couple new git_vector helpers (is_sorted, set_sorted) so the specific representation of this information could be abstracted.
* More index collision testsEdward Thomson2014-01-291-0/+64
|
* Add test for blob/tree name collisions in indexRussell Belfer2014-01-291-0/+42
|
* index: rename an entry's id to 'id'Carlos Martín Nieto2014-01-253-26/+26
| | | | This was not converted when we converted the rest, so do it now.
* More improvements to callback return value testsRussell Belfer2013-12-111-30/+128
| | | | | | This time actually checking return values in diff notify tests and actually testing callbacks for the index all-all/update-all/etc functions.
* tests: Drop unrelated commentnulltoken2013-11-191-1/+0
|
* tree-cache: Don't segfault upon corruptionnulltoken2013-11-191-0/+9
|
* Rename tests-clar to testsBen Straub2013-11-1410-0/+1936