aboutsummaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2006-05-19 16:07:51 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-19 16:14:50 -0700
commit3c6a370b0ee78114a656acba04fddf306252b9d5 (patch)
tree730ab88db53dcf8207d0ca4b163d9f07e2c367d0 /dir.h
parent8dcf39c46e2931ca02b18b1ea3a6b21f446d8de8 (diff)
downloadgit-3c6a370b0ee78114a656acba04fddf306252b9d5.tar.gz
git-3c6a370b0ee78114a656acba04fddf306252b9d5.tar.xz
Move pathspec matching from builtin-add.c into dir.c
I'll use it for builtin-rm.c too. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'dir.h')
-rw-r--r--dir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/dir.h b/dir.h
index 4f65f5708..56a1b7fce 100644
--- a/dir.h
+++ b/dir.h
@@ -39,6 +39,9 @@ struct dir_struct {
struct exclude_list exclude_list[3];
};
+extern int common_prefix(const char **pathspec);
+extern int match_pathspec(const char **pathspec, const char *name, int namelen, int prefix, char *seen);
+
extern int read_directory(struct dir_struct *, const char *path, const char *base, int baselen);
extern int excluded(struct dir_struct *, const char *);
extern void add_excludes_from_file(struct dir_struct *, const char *fname);