pathspec: i18n-ize error strings in pathspec parsing code
[git/git.git] / pathspec.h
CommitLineData
6f525e71
AS
1#ifndef PATHSPEC_H
2#define PATHSPEC_H
3
64acde94
NTND
4#define PATHSPEC_ONESTAR 1 /* the pathspec pattern sastisfies GFNM_ONESTAR */
5
6struct pathspec {
7 const char **raw; /* get_pathspec() result, not freed by free_pathspec() */
8 int nr;
9 unsigned int has_wildcard:1;
10 unsigned int recursive:1;
11 int max_depth;
12 struct pathspec_item {
13 const char *match;
14 int len;
15 int nowildcard_len;
16 int flags;
17 } *items;
18};
19
20extern int init_pathspec(struct pathspec *, const char **);
21extern void free_pathspec(struct pathspec *);
22
23extern int limit_pathspec_to_literal(void);
24
4b78d7bc
AS
25extern char *find_pathspecs_matching_against_index(const char **pathspec);
26extern void add_pathspec_matches_against_index(const char **pathspec, char *seen, int specs);
9d67b61f 27extern const char *check_path_for_gitlink(const char *path);
512aaf94 28extern void die_if_path_beyond_symlink(const char *path, const char *prefix);
6f525e71
AS
29
30#endif /* PATHSPEC_H */