From: Nguyen Thai Ngoc Duy Date: Sat, 05 Feb 2011 04:14:58 GMT Subject: Re: [PATCH] Add case insensitive support in matching pathspec Message-ID: In-Reply-To: <7vei7nxuw5.fsf@alter.siamese.dyndns.org> On Sat, Feb 5, 2011 at 6:06 AM, Junio C Hamano wrote: > Nguyen Thai Ngoc Duy writes: > >>> core.ignorecase should be honored only when files on the filesystem are >>> matched, IMO. >> >> Names in index, just as same as match_pathspec(). > > If the matched entities are names in the index, they should already be > canonical and we shouldn't be matching with icase, no? The patterns are case-insensitive. The example given in 21444f is "git ls-files mydir" should also match MyDir/* in index. Although by modifying match_one(), it affects more than just git-ls-files. I'm not the original author, so Joshua, was that patch to fix git-ls-files only? -- Duy