Code

pathspec: add match_pathspec_depth()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 15 Dec 2010 15:02:48 +0000 (22:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Dec 2010 21:20:23 +0000 (13:20 -0800)
commita2a1da847d9011497182e9c286734733f03a8b79
treed6164895bf22121adc9b88f4d82fe83f9afa47c0
parentb3d4b34ae6da6801da468e7fc7f01769972019f8
pathspec: add match_pathspec_depth()

match_pathspec_depth() is a clone of match_pathspec() except that it
can take depth limit. Computation is a bit lighter compared to
match_pathspec() because it's usually precomputed and stored in struct
pathspec.

In long term, match_pathspec() and match_one() should be removed in
favor of this function.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
dir.h