summaryrefslogtreecommitdiff
path: root/tests/submodule/submodule_helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* More tests and fix submodule index refreshRussell Belfer2014-04-011-7/+29
| | | | | | | | | | There was a little bug where the submodule cache thought that the index date was out of date even when it wasn't that was resulting in some extra scans of index data even when not needed. Mostly this commit adds a bunch of new tests including adding and removing submodules in the index and in the HEAD and seeing if we can automatically pick them up when refreshing.
* Make submodules externally refcountedRussell Belfer2014-03-251-0/+29
| | | | | | | | `git_submodule` objects were already refcounted internally in case the submodule name was different from the path at which it was stored. This makes that refcounting externally used as well, so `git_submodule_lookup` and `git_submodule_add_setup` return an object that requires a `git_submodule_free` when done.
* Rename tests-clar to testsBen Straub2013-11-141-0/+127