aboutsummaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-10-24 17:36:12 +1100
committerJunio C Hamano <gitster@pobox.com>2011-10-27 11:38:24 -0700
commit9c6bebd14233af291ffb8dde2975b06c76e9ce5f (patch)
tree86be73a023c63e432c951da31719b84ef530fd4c /tree-walk.c
parentd688cf07b15b664a2164c3d92bcb5e8265400a2b (diff)
downloadgit-9c6bebd14233af291ffb8dde2975b06c76e9ce5f.tar.gz
git-9c6bebd14233af291ffb8dde2975b06c76e9ce5f.tar.xz
tree_entry_interesting: make use of local pointer "item"
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.c')
-rw-r--r--tree-walk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-walk.c b/tree-walk.c
index 4a03e9bd2..f82dba6a1 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -626,7 +626,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
&never_interesting))
return entry_interesting;
- if (ps->items[i].use_wildcard) {
+ if (item->use_wildcard) {
if (!fnmatch(match + baselen, entry->path, 0))
return entry_interesting;
@@ -642,7 +642,7 @@ enum interesting tree_entry_interesting(const struct name_entry *entry,
}
match_wildcards:
- if (!ps->items[i].use_wildcard)
+ if (!item->use_wildcard)
continue;
/*