summaryrefslogtreecommitdiff
path: root/tests-clar/clar_libgit2.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve ignore handling in git_status_fileRussell Belfer2013-05-101-0/+12
| | | | | | | | | | | | | | | | The git_status_file API was doing a hack to deal with files that are inside ignored directories. The status scan was not reporting any file in this case, so git_status_file would attempt a final "stat()" call, and return IGNORED if the file actually existed. On case-insensitive filesystems where core.ignorecase is set incorrectly, this magic check can "succeed" and report a file as ignored when it should actually return ENOTFOUND. Now that we have the GIT_STATUS_OPT_RECURSE_IGNORED_DIRS, we can use that flag to make sure that git_status_file() will look into ignored directories and eliminate the hack completely, so we give the correct error.
* Add cl_repo_set_bool and cleanup testsRussell Belfer2013-03-221-0/+8
| | | | | | This adds a helper function for the cases where you want to quickly set a single boolean config value for a repository. This allowed me to remove a lot of code.
* Switch search paths to classic delimited stringsRussell Belfer2013-03-181-1/+1
| | | | | | | | | | | | This switches the APIs for setting and getting the global/system search paths from using git_strarray to using a simple string with GIT_PATH_LIST_SEPARATOR delimited paths, just as the environment PATH variable would contain. This makes it simpler to get and set the value. I also added code to expand "$PATH" when setting a new value to embed the old value of the path. This means that I no longer require separate actions to PREPEND to the value.
* Clear up warnings from cppcheckRussell Belfer2013-02-151-6/+10
| | | | | | | | | | | | The cppcheck static analyzer generates warnings for a bunch of places in the libgit2 code base. All the ones fixed in this commit are actually false positives, but I've reorganized the code to hopefully make it easier for static analysis tools to correctly understand the structure. I wouldn't do this if I felt like it was making the code harder to read or worse for humans, but in this case, these fixes don't seem too bad and will hopefully make it easier for better analysis tools to get at any real issues.
* Fix some incorrect MSVC #ifdef's. Fixes #1305Philip Kelley2013-02-111-1/+1
|
* Update cl_git_pass to return more infoRussell Belfer2013-01-041-0/+10
| | | | | | This adds a failure reporting function that is called by cl_git_pass which captures the actual error return code and the error message if available in the failure report.
* This is a better nameVicent Marti2013-01-021-0/+311