pathspec: convert some match_pathspec_depth() to ce_path_match()
This helps reduce the number of match_pathspec_depth() call sites and show how match_pathspec_depth() is used. 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
017f804efc
commit
429bb40abd
@ -33,7 +33,7 @@ void add_pathspec_matches_against_index(const struct pathspec *pathspec,
|
||||
return;
|
||||
for (i = 0; i < active_nr; i++) {
|
||||
const struct cache_entry *ce = active_cache[i];
|
||||
match_pathspec_depth(pathspec, ce->name, ce_namelen(ce), 0, seen);
|
||||
ce_path_match(ce, pathspec, seen);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user