X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.h;h=313f8ab64e7e3a6be1d22335eb54872c929d857e;hb=d5f6a01af0658bc0ec5f068d81ba321be94526d5;hp=e8fc441e7fcc4d53af30881a643853a0ab96f7aa;hpb=453ec4bdf403c2e89892266a0a660c21680d3f9d;p=git.git diff --git a/dir.h b/dir.h index e8fc441e7..313f8ab64 100644 --- a/dir.h +++ b/dir.h @@ -39,12 +39,14 @@ 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); extern void add_exclude(const char *string, const char *base, int baselen, struct exclude_list *which); -extern int push_exclude_per_directory(struct dir_struct *, - const char *base, int baselen); +extern int file_exists(const char *); #endif