From 22af33bece7e121b9d535d0a117cd4553b00fe07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Th=C3=A1i=20Ng=E1=BB=8Dc=20Duy?= Date: Sun, 18 Nov 2018 17:47:59 +0100 Subject: dir.c: move, rename and export match_attrs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The function will be reused for matching attributes in pathspec when walking trees (currently it's used for matching pathspec when walking a list). pathspec.c would be a more neutral place for this. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- pathspec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pathspec.h') diff --git a/pathspec.h b/pathspec.h index 5fd781d695..1c18a2c90c 100644 --- a/pathspec.h +++ b/pathspec.h @@ -111,5 +111,8 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec, char *seen); char *find_pathspecs_matching_against_index(const struct pathspec *pathspec, const struct index_state *istate); +int match_pathspec_attrs(const struct index_state *istate, + const char *name, int namelen, + const struct pathspec_item *item); #endif /* PATHSPEC_H */ -- cgit v1.2.3