mirror of
https://github.com/git/git.git
synced 2026-01-11 02:32:58 +00:00
pathspec: convert find_pathspecs_matching_against_index to take an index
Convert find_pathspecs_matching_against_index to take an index parameter. In addition mark pathspec.c with NO_THE_INDEX_COMPATIBILITY_MACROS now that it doesn't use any cache macros or reference 'the_index'. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
2249d4dbc1
commit
08de9151a8
@@ -96,7 +96,10 @@ static inline int ps_strcmp(const struct pathspec_item *item,
|
||||
return strcmp(s1, s2);
|
||||
}
|
||||
|
||||
extern char *find_pathspecs_matching_against_index(const struct pathspec *pathspec);
|
||||
extern void add_pathspec_matches_against_index(const struct pathspec *pathspec, char *seen);
|
||||
extern void add_pathspec_matches_against_index(const struct pathspec *pathspec,
|
||||
const struct index_state *istate,
|
||||
char *seen);
|
||||
extern char *find_pathspecs_matching_against_index(const struct pathspec *pathspec,
|
||||
const struct index_state *istate);
|
||||
|
||||
#endif /* PATHSPEC_H */
|
||||
|
||||
Reference in New Issue
Block a user