5 #define PATHSPEC_FROMTOP (1<<0)
6 #define PATHSPEC_ALL_MAGIC PATHSPEC_FROMTOP
8 #define PATHSPEC_ONESTAR 1 /* the pathspec pattern sastisfies GFNM_ONESTAR */
11 const char **raw; /* get_pathspec() result, not freed by free_pathspec() */
13 unsigned int has_wildcard:1;
14 unsigned int recursive:1;
17 struct pathspec_item {
27 /* parse_pathspec flags */
28 #define PATHSPEC_PREFER_CWD (1<<0) /* No args means match cwd */
29 #define PATHSPEC_PREFER_FULL (1<<1) /* No args means match everything */
31 extern int init_pathspec(struct pathspec *, const char **);
32 extern void parse_pathspec(struct pathspec *pathspec,
37 extern void copy_pathspec(struct pathspec *dst, const struct pathspec *src);
38 extern void free_pathspec(struct pathspec *);
40 extern int limit_pathspec_to_literal(void);
42 extern char *find_pathspecs_matching_against_index(const char **pathspec);
43 extern void add_pathspec_matches_against_index(const char **pathspec, char *seen, int specs);
44 extern const char *check_path_for_gitlink(const char *path);
45 extern void die_if_path_beyond_symlink(const char *path, const char *prefix);
47 #endif /* PATHSPEC_H */