summaryrefslogtreecommitdiff
path: root/src/pathspec.h
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-06-19 16:18:30 -0700
committerVicent Martí <vicent@github.com>2013-06-19 16:18:30 -0700
commit8b2fa181b2741661253c1d58cfa1077ade8bea24 (patch)
treebe72b7dff741ca02f70899b8bf4955b997e569b2 /src/pathspec.h
parent5144850cb7c5f6aabef120f7ede2f5c587a7206a (diff)
parent7863523a1be51981bafee9d13b3344fb4ff47347 (diff)
downloadlibgit2-8b2fa181b2741661253c1d58cfa1077ade8bea24.tar.gz
Merge pull request #1661 from arrbee/index-add-all
Index operations using globs
Diffstat (limited to 'src/pathspec.h')
-rw-r--r--src/pathspec.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/pathspec.h b/src/pathspec.h
index 43a94baad..f6509df4c 100644
--- a/src/pathspec.h
+++ b/src/pathspec.h
@@ -37,4 +37,18 @@ extern bool git_pathspec_match_path(
bool casefold,
const char **matched_pathspec);
+/* easy pathspec setup */
+
+typedef struct {
+ char *prefix;
+ git_vector pathspec;
+ git_pool pool;
+} git_pathspec_context;
+
+extern int git_pathspec_context_init(
+ git_pathspec_context *ctxt, const git_strarray *paths);
+
+extern void git_pathspec_context_free(
+ git_pathspec_context *ctxt);
+
#endif