summaryrefslogtreecommitdiff
path: root/tests/submodule/submodule_helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* clar: include the function nameethomson/clar_tapEdward Thomson2020-06-051-5/+5
|
* Convert usage of `git_buf_free` to new `git_buf_dispose`Patrick Steinhardt2018-06-101-3/+3
|
* tests: provide better pass/failure error messagesEdward Thomson2017-02-171-1/+1
| | | | | | Provide more detailed messages when conditions pass or fail unexpectedly. In particular, this provides the error messages when a test fails with a different error code than was expected.
* status: test submodules with mixed caseEdward Thomson2016-03-311-0/+26
|
* submodule: test updating a submodule w/ a pathEdward Thomson2015-11-041-0/+15
| | | | | Test that `git_submodule_update` can handle a submodule that is freshly cloned and has a path differing from its name.
* repo::reservedname: test a submodule updateEdward Thomson2015-09-181-0/+16
| | | | | | | Test an initial submodule update, where we are trying to checkout the submodule for the first time, and placing a file within the submodule working directory with the same name as the submodule (and consequently, the same name as the repository itself).
* Rename FALLBACK to UNSPECIFIEDcmn/rename-unspecifiedCarlos Martín Nieto2015-06-251-1/+1
| | | | | Fallback describes the mechanism, while unspecified explains what the user is thinking.
* submodule: fix potential leak in the testsCarlos Martín Nieto2015-06-221-2/+1
|
* submodule: add an ignore option to statusCarlos Martín Nieto2015-06-221-1/+1
| | | | | | | | | | | | | This lets us specify in the status call which ignore rules we want to use (optionally falling back to whatever the submodule has in its configuration). This removes one of the reasons for having `_set_ignore()` set the value in-memory. We re-use the `IGNORE_RESET` value for this as it is no longer relevant but has a similar purpose to `IGNORE_FALLBACK`. Similarly, we remove `IGNORE_DEFAULT` which does not have use outside of initializers and move that to fall back to the configuration as well.
* submodule: don't let status change an existing instanceCarlos Martín Nieto2015-06-221-5/+3
| | | | | | As submodules are becomes more like values, we should not let a status check to update its properties. Instead of taking a submodule, have status take a repo and submodule name.
* submodule init should resolve relative url pathsJameson Miller2014-12-221-0/+14
| | | | | Submodule init should handle relative paths in .gitmodules files and resolve these urls when updating the git config file.
* Win32: Fix diff::workdir::submodules test #2361Philip Kelley2014-06-071-2/+2
|
* 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