зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
d688cf07b1
Коммит
9c6bebd142
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче