diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2011-10-24 17:36:12 +1100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-27 11:38:24 -0700 |
commit | 9c6bebd14233af291ffb8dde2975b06c76e9ce5f (patch) | |
tree | 86be73a023c63e432c951da31719b84ef530fd4c /tree-walk.c | |
parent | d688cf07b15b664a2164c3d92bcb5e8265400a2b (diff) | |
download | git-9c6bebd14233af291ffb8dde2975b06c76e9ce5f.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-walk.c b/tree-walk.c index 4a03e9bd21..f82dba6a1f 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; /* |