X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.h;h=aa511da77b0ec54cbdbd3786faad0c1285df7182;hb=712d2c7dd893212756c21787fc12d6f71327e167;hp=72a764ed84828e4a6336d2880f2167fbc9d3143a;hpb=b7f6afe2df4f15e03b02217dbe4f2df182308d10;p=git.git diff --git a/dir.h b/dir.h index 72a764ed8..aa511da77 100644 --- a/dir.h +++ b/dir.h @@ -65,6 +65,10 @@ struct dir_struct { #define MATCHED_FNMATCH 2 #define MATCHED_EXACTLY 3 extern int match_pathspec(const char **pathspec, const char *name, int namelen, int prefix, char *seen); +extern int match_pathspec_depth(const struct pathspec *pathspec, + const char *name, int namelen, + int prefix, char *seen); +extern int within_depth(const char *name, int namelen, int depth, int max_depth); extern int fill_directory(struct dir_struct *dir, const char **pathspec); extern int read_directory(struct dir_struct *, const char *path, int len, const char **pathspec);