summaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-05 21:17:52 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-05 21:22:36 -0700
commit782cd4c0f6e0fef5147cb738009dde6e778f4932 (patch)
tree98a8b6e49990982df90775ae74d9596cd774822d /dir.h
parent93921b07e985de38f7af6689d81e5c7dfb3f8aa0 (diff)
downloadgit-782cd4c0f6e0fef5147cb738009dde6e778f4932.tar.gz
path_excluded(): update API to less cache-entry centric
It was stupid of me to make the API too much cache-entry specific; the caller may want to check arbitrary pathname without having a corresponding cache-entry to see if a path is ignored. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/dir.h b/dir.h
index 7378e69c17..36a82b3bd1 100644
--- a/dir.h
+++ b/dir.h
@@ -92,7 +92,8 @@ struct path_exclude_check {
};
extern void path_exclude_check_init(struct path_exclude_check *, struct dir_struct *);
extern void path_exclude_check_clear(struct path_exclude_check *);
-extern int path_excluded(struct path_exclude_check *, struct cache_entry *);
+extern int path_excluded(struct path_exclude_check *, const char *, int namelen, int *dtype);
+
extern int add_excludes_from_file_to_list(const char *fname, const char *base, int baselen,
char **buf_p, struct exclude_list *which, int check_index);