tree_entry_interesting(): support wildcard matching
never_interesting optimization is disabled if there is any wildcard pathspec, even if it only matches exactly on trees. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
86e4ca69e3
commit
d38f28093e
@ -60,6 +60,6 @@ static inline int traverse_path_len(const struct traverse_info *info, const stru
|
||||
return info->pathlen + tree_entry_len(n->path, n->sha1);
|
||||
}
|
||||
|
||||
extern int tree_entry_interesting(const struct name_entry *, const struct strbuf *, const struct pathspec *ps);
|
||||
extern int tree_entry_interesting(const struct name_entry *, struct strbuf *, const struct pathspec *ps);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user