Re: [PATCH 03/21] pathspec: make sure the prefix part is wildcard-clean

2013-01-06 Thread Duy Nguyen
On Sun, Jan 6, 2013 at 1:20 PM, Nguyễn Thái Ngọc Duy pclo...@gmail.com wrote: --- a/setup.c +++ b/setup.c @@ -250,6 +250,8 @@ static unsigned prefix_pathspec(struct pathspec_item *item, *raw = item-match; item-len = strlen(item-match); item-nowildcard_len =

[PATCH 03/21] pathspec: make sure the prefix part is wildcard-clean

2013-01-05 Thread Nguyễn Thái Ngọc Duy
Prefix is the result of Git moving back from current directory to worktree's top directory and it has to prepend all user provided paths so that they become relative to the new current directory. Any wildcards in the prefix should not be treated as such because it's not the user intention. Make