summaryrefslogtreecommitdiff
path: root/src/pathspec.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-13 15:20:23 +0200
committerPatrick Steinhardt <ps@pks.im>2019-06-15 09:34:21 +0200
commit451df7930db432e7b251bbd0fe2862fe96424ae9 (patch)
treefa37153666ddbc396b20cefac7d32e2de41145f8 /src/pathspec.c
parenta9f576291ac3c2790124809b2390b3f2915aaa44 (diff)
downloadlibgit2-451df7930db432e7b251bbd0fe2862fe96424ae9.tar.gz
posix: remove implicit include of "fnmatch.h"
We're about to phase out our bundled fnmatch implementation as git.git has moved to wildmatch long ago in 2014. To make it easier to spot which files are stilll using fnmatch, remove the implicit "fnmatch.h" include in "posix.h" and instead include it explicitly.
Diffstat (limited to 'src/pathspec.c')
-rw-r--r--src/pathspec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pathspec.c b/src/pathspec.c
index 07795f256..80144c741 100644
--- a/src/pathspec.c
+++ b/src/pathspec.c
@@ -16,6 +16,7 @@
#include "index.h"
#include "bitvec.h"
#include "diff.h"
+#include "fnmatch.h"
/* what is the common non-wildcard prefix for all items in the pathspec */
char *git_pathspec_prefix(const git_strarray *pathspec)