summaryrefslogtreecommitdiff
path: root/src/attr.h
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-02-01 12:30:35 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-02-01 12:30:35 -0800
commite8c96ed2a74a4fcd9789721b4ebfd78586b3a16f (patch)
tree9cb7c7a096c76c8b0ec05289c42ffff2baef042c /src/attr.h
parent62a1f713de384e141045facf3c1a53d9642e8eb5 (diff)
downloadlibgit2-e8c96ed2a74a4fcd9789721b4ebfd78586b3a16f.tar.gz
Add unit tests for recent bug fixes
Add unit tests to confirm ignore directory pattern matches and to confirm that ignore and attribute files are loaded properly into the attribute file cache.
Diffstat (limited to 'src/attr.h')
-rw-r--r--src/attr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/attr.h b/src/attr.h
index a758cc4bd..ea27259f1 100644
--- a/src/attr.h
+++ b/src/attr.h
@@ -27,4 +27,7 @@ extern int git_attr_cache__push_file(
const char *filename,
int (*loader)(git_repository *, const char *, git_attr_file *));
+/* returns GIT_SUCCESS if path is in cache */
+extern int git_attr_cache__is_cached(git_repository *repo, const char *path);
+
#endif