]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/check-ignore.c
check-ignore: convert to use parse_pathspec
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 14 Jul 2013 08:35:45 +0000 (15:35 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Jul 2013 17:56:07 +0000 (10:56 -0700)
commit931eab64ad24a742182c4e946a1138e677a8bd4e
treed4da3305885d22ae810291cd54bab589fe6f5f23
parentf3e743a0d972e8ed3367d74c1152ff66f7cde416
check-ignore: convert to use parse_pathspec

check-ignore (at least the test suite) seems to rely on the pattern
order. PATHSPEC_KEEP_ORDER is introduced to explictly express this.
The lack of PATHSPEC_MAXDEPTH_VALID is sufficient because it's the
only flag that reorders pathspecs, but it's less obvious that way.

Cc: Adam Spiers <git@adamspiers.org>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/check-ignore.c
pathspec.c
pathspec.h
t/t0008-ignores.sh