pathspec: convert some match_pathspec_depth() to dir_path_match()
commitebb32893bad46bf5edae881552672a47dd2684b8
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 24 Jan 2014 13:40:29 +0000 (24 20:40 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2014 22:37:09 +0000 (24 14:37 -0800)
tree33f26d579d3f3025af77d4dfeefb6a884fb36d1b
parent429bb40abdb5b42ffdde5b1a58f9a37da723d179
pathspec: convert some match_pathspec_depth() to dir_path_match()

This helps reduce the number of match_pathspec_depth() call sites and
show how m_p_d() is used. And it usage is:

 - match against an index entry (ce_path_match or match_pathspec_depth
   in ls-files)

 - match against a dir_entry from read_directory (dir_path_match and
   match_pathspec_depth in clean.c, which will be converted later)

 - resolve-undo (rerere.c and ls-files.c)

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c
builtin/grep.c
builtin/ls-files.c
dir.h
wt-status.c