Convert read_tree{,_recursive} to support struct pathspec
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 25 Mar 2011 09:34:19 +0000 (16:34 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Mar 2011 16:20:33 +0000 (09:20 -0700)
commitf0096c06bcdeb7aa6ae8a749ddc9d6d4a2c381d1
treeb5b28251c9e48186b9e6168cbfefe4ace0f57602
parentffd31f661d5c5dddc091750ca86cfaa5d9d04b38
Convert read_tree{,_recursive} to support struct pathspec

This patch changes behavior of the two functions. Previously it does
prefix matching only. Now it can also do wildcard matching.

All callers are updated. Some gain wildcard matching (archive,
checkout), others reset pathspec_item.has_wildcard to retain old
behavior (ls-files, ls-tree as they are plumbing).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
builtin/checkout.c
builtin/log.c
builtin/ls-files.c
builtin/ls-tree.c
merge-recursive.c
t/t3102-ls-tree-wildcards.sh [new file with mode: 0755]
tree.c
tree.h