Re: [PATCH v2 46/46] parse_pathspec: accept :(icase)path syntax
On Sun, Jul 14, 2013 at 4:36 AM, Nguyễn Thái Ngọc Duy <pclouds@gmail.com> wrote:
Show 11 quoted lines
> diff --git a/Documentation/git.txt b/Documentation/git.txt
> index 3571a1b..546eea4 100644
> --- a/Documentation/git.txt
> +++ b/Documentation/git.txt
> @@ -879,6 +883,10 @@ GIT_NOGLOB_PATHSPECS::
> Setting this variable to `1` will cause Git to treat all
> pathspecs as literal (aka "literal" magic).
>
> +GIT_ICASE_PATHSPECS::
> + Setting this variable to `1` will cause Git to treat all
> + pathspeccs as case-insensitive.
Show 9 quoted lines
> @@ -110,16 +114,27 @@ static size_t common_prefix_len(const struct pathspec *pathspec)
> int n;
> size_t max = 0;
>
> + /*
> + * ":(icase)path" is treated as a pathspec full of
> + * wildcard. In other words, only prefix is considered common
> + * prefix. If the pathspec is abc/foo abc/bar, running in
> + * subdir xyz, the common prefix is still xyz, not xuz/abc as