X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=dir.h;h=56a1b7fce224b489aa4ac91766cfb47a3097f197;hb=68d42c41ef33cde500307660bb64a1c74f62711e;hp=4f65f570852f417f70f1dadc80cc51be484454f1;hpb=ae12e59a8c895e48d4ef52ac6936674ac7be6370;p=git.git 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);