summaryrefslogtreecommitdiff
path: root/src/ignore.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-01-11 16:01:48 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-01-11 16:01:48 -0800
commit6a67a812c224878483659c6f25ca21573d1c309b (patch)
tree700df7d116f14bae08e437379bd4dfd44aaba825 /src/ignore.h
parentfdaa924037b66ee898fab503836a3d67194efacc (diff)
downloadlibgit2-6a67a812c224878483659c6f25ca21573d1c309b.tar.gz
Allow ignores (and attribs) for nonexistent files
This fixes issue 532 that attributes (and gitignores) could not be checked for files that don't exist. It should be possible to query such things regardless of the existence of the file.
Diffstat (limited to 'src/ignore.h')
-rw-r--r--src/ignore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ignore.h b/src/ignore.h
index 2954445b5..a6e6a1a34 100644
--- a/src/ignore.h
+++ b/src/ignore.h
@@ -14,4 +14,6 @@ extern int git_ignore__for_path(git_repository *repo, const char *path, git_vect
extern void git_ignore__free(git_vector *stack);
extern int git_ignore__lookup(git_vector *stack, const char *path, int *ignored);
+extern int git_ignore_is_ignored(git_repository *repo, const char *path, int *ignored);
+
#endif