summaryrefslogtreecommitdiff
path: root/tests/config/conditionals.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert usage of `git_buf_free` to new `git_buf_dispose`Patrick Steinhardt2018-06-101-3/+3
|
* tests: resolve the real path for the sandbox in includeIf testsCarlos Martín Nieto2017-10-311-6/+14
| | | | | | | | | | We put our repository in the temporary directory which makes macOS map the path into a virtual path. `realpath(3)` can resolve it and we do so during repository opening, but that makes its path have a different prefix from the sandbox path clar thinks we have. Resolve the sandbox path before putting it into the test config files so the paths match as expected.
* config_file: implement "gitdir/i" conditionalPatrick Steinhardt2017-10-091-0/+13
| | | | | | | Next to the "gitdir" conditional for including other configuration files, there's also a "gitdir/i" conditional. In contrast to the former one, path matching with "gitdir/i" is done case-insensitively. This commit implements the case-insensitive condition.
* config_file: implement conditional "gitdir" includesPatrick Steinhardt2017-10-091-0/+82
Upstream git.git has implemented the ability to include other configuration files based on conditions. Right now, this only includes the ability to include a file based on the gitdir-location of the repository the currently parsed configuration file belongs to. This commit implements handling these conditional includes for the case-sensitive "gitdir" condition.