diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-12-15 16:02:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-02-03 23:08:30 +0100 |
commit | d38f28093ef795bef13d2fda6621b4952afb42db (patch) | |
tree | ee06d38a5a645292a66afa665a517f184ff7a151 /tree-walk.h | |
parent | tree_entry_interesting(): fix depth limit with overlapping pathspecs (diff) | |
download | git-d38f28093ef795bef13d2fda6621b4952afb42db.tar.xz git-d38f28093ef795bef13d2fda6621b4952afb42db.zip |
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>
Diffstat (limited to 'tree-walk.h')
-rw-r--r-- | tree-walk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tree-walk.h b/tree-walk.h index f81c232b5a..6589ee27e4 100644 --- a/tree-walk.h +++ b/tree-walk.h @@ -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 |