summaryrefslogtreecommitdiff
path: root/tests/diff/blob.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-13 19:16:32 +0200
committerPatrick Steinhardt <ps@pks.im>2019-06-15 09:34:21 +0200
commit5811e3ba490ed57dd73714ff4cf26cfa355c19f4 (patch)
tree4c33c5e9a2ef1477e1da6ee27424fb718085d57c /tests/diff/blob.c
parentcf1a114ba029f57c3c42bd4e8c30565cac48ba90 (diff)
downloadlibgit2-5811e3ba490ed57dd73714ff4cf26cfa355c19f4.tar.gz
config_file: use `wildmatch` to evaluate conditionals
We currently use `p_fnmatch` to compute whether a given "gitdir:" or "gitdir/i:" conditional matches the current configuration file path. As git.git has moved to use `wildmatch` instead of `p_fnmatch` throughout its complete codebase, we evaluate conditionals inconsistently with git.git in some special cases. Convert `p_fnmatch` to use `wildmatch`. The `FNM_LEADINGDIR` flag cannot be translated to `wildmatch`, but in fact git.git doesn't use it here either. And in fact, dropping it while we go increases compatibility with git.git.
Diffstat (limited to 'tests/diff/blob.c')
0 files changed, 0 insertions, 0 deletions