diff options
author | 2014-03-14 14:25:31 -0700 | |
---|---|---|
committer | 2014-03-14 14:25:31 -0700 | |
commit | 650c90a18506ce05e2be349d83fe1cef3dc7f8cb (patch) | |
tree | 6852107d8a2a0d30ea2cfac400fc33bce72fe7bc /builtin/reflog.c | |
parent | Merge branch 'ak/gitweb-fit-image' (diff) | |
parent | actually remove compat fnmatch source code (diff) | |
download | tgif-650c90a18506ce05e2be349d83fe1cef3dc7f8cb.tar.xz |
Merge branch 'nd/no-more-fnmatch'
We started using wildmatch() in place of fnmatch(3); complete the
process and stop using fnmatch(3).
* nd/no-more-fnmatch:
actually remove compat fnmatch source code
stop using fnmatch (either native or compat)
Revert "test-wildmatch: add "perf" command to compare wildmatch and fnmatch"
use wildmatch() directly without fnmatch() wrapper
Diffstat (limited to 'builtin/reflog.c')
-rw-r--r-- | builtin/reflog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/reflog.c b/builtin/reflog.c index 852cff60b7..c12a9784e6 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -561,7 +561,7 @@ static void set_reflog_expiry_param(struct cmd_reflog_expire_cb *cb, int slot, c return; /* both given explicitly -- nothing to tweak */ for (ent = reflog_expire_cfg; ent; ent = ent->next) { - if (!fnmatch(ent->pattern, ref, 0)) { + if (!wildmatch(ent->pattern, ref, 0, NULL)) { if (!(slot & EXPIRE_TOTAL)) cb->expire_total = ent->expire_total; if (!(slot & EXPIRE_UNREACH)) |