dir.c: replace is_path_excluded with now equivalent is_excluded API
Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
95c6f27164
commit
b07bc8c8c3
16
dir.h
16
dir.h
@ -151,20 +151,10 @@ extern int match_pathname(const char *, int,
|
||||
const char *, int,
|
||||
const char *, int, int, int);
|
||||
|
||||
/*
|
||||
* The is_excluded() API is meant for callers that check each level of leading
|
||||
* directory hierarchies with is_excluded() to avoid recursing into excluded
|
||||
* directories. Callers that do not do so should use this API instead.
|
||||
*/
|
||||
struct path_exclude_check {
|
||||
struct dir_struct *dir;
|
||||
};
|
||||
extern void path_exclude_check_init(struct path_exclude_check *, struct dir_struct *);
|
||||
extern void path_exclude_check_clear(struct path_exclude_check *);
|
||||
extern struct exclude *last_exclude_matching_path(struct path_exclude_check *, const char *,
|
||||
int namelen, int *dtype);
|
||||
extern int is_path_excluded(struct path_exclude_check *, const char *, int namelen, int *dtype);
|
||||
extern struct exclude *last_exclude_matching(struct dir_struct *dir,
|
||||
const char *name, int *dtype);
|
||||
|
||||
extern int is_excluded(struct dir_struct *dir, const char *name, int *dtype);
|
||||
|
||||
extern struct exclude_list *add_exclude_list(struct dir_struct *dir,
|
||||
int group_type, const char *src);
|
||||
|
Reference in New Issue
Block a user