diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-06-13 19:16:32 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-06-15 09:34:21 +0200 |
commit | 5811e3ba490ed57dd73714ff4cf26cfa355c19f4 (patch) | |
tree | 4c33c5e9a2ef1477e1da6ee27424fb718085d57c /tests/diff/blob.c | |
parent | cf1a114ba029f57c3c42bd4e8c30565cac48ba90 (diff) | |
download | libgit2-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