X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=dir.h;h=2df15defb6720a742282f24721233c4816deceb6;hb=fa4946b5532ff911565c882892a715616c22cdec;hp=d8814dccb2dd57af21d75c91a52026e09fdf1b95;hpb=f1a8cc635455a65567d040349327b9ea4adb479b;p=git.git diff --git a/dir.h b/dir.h index d8814dccb..2df15defb 100644 --- a/dir.h +++ b/dir.h @@ -9,6 +9,7 @@ struct dir_entry { #define EXC_FLAG_NODIR 1 #define EXC_FLAG_NOWILDCARD 2 #define EXC_FLAG_ENDSWITH 4 +#define EXC_FLAG_MUSTBEDIR 8 struct exclude_list { int nr; @@ -67,7 +68,7 @@ extern int match_pathspec(const char **pathspec, const char *name, int namelen, extern int read_directory(struct dir_struct *, const char *path, const char *base, int baselen, const char **pathspec); -extern int excluded(struct dir_struct *, const char *); +extern int excluded(struct dir_struct *, const char *, int *); 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);