summaryrefslogtreecommitdiff
path: root/src/ignore.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ignore.h')
-rw-r--r--src/ignore.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/ignore.h b/src/ignore.h
index 2954445b5..9f87ae56e 100644
--- a/src/ignore.h
+++ b/src/ignore.h
@@ -10,8 +10,14 @@
#include "repository.h"
#include "vector.h"
-extern int git_ignore__for_path(git_repository *repo, const char *path, git_vector *stack);
-extern void git_ignore__free(git_vector *stack);
-extern int git_ignore__lookup(git_vector *stack, const char *path, int *ignored);
+typedef struct {
+ git_repository *repo;
+ char *dir;
+ git_vector stack;
+} git_ignores;
+
+extern int git_ignore__for_path(git_repository *repo, const char *path, git_ignores *stack);
+extern void git_ignore__free(git_ignores *stack);
+extern int git_ignore__lookup(git_ignores *stack, const char *path, int *ignored);
#endif