git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add case insensitive support in matching pathspec

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Feb 5, 2011, 04:14 UTC
Message-ID
<AANLkTi=5j1kjAjY6ek6YXTs24DO9J7X0QQjTB4qrZ_g3@mail.gmail.com>
In-Reply-To
<7vei7nxuw5.fsf@alter.siamese.dyndns.org>
On Sat, Feb 5, 2011 at 6:06 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 9 quoted lines
> Nguyen Thai Ngoc Duy <pclouds@gmail.com> 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
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “Add case insensitive support in matching pathspec”
  1. Add case insensitive support in matching pathspecNguyễn Thái Ngọc Duy, Feb 3, 2011
  2. Johannes SixtFeb 3, 2011
  3. Nguyen Thai Ngoc DuyFeb 4, 2011
  4. Junio C HamanoFeb 4, 2011
  5. Nguyen Thai Ngoc DuyFeb 5, 2011
  6. Junio C HamanoFeb 3, 2011
  7. Nguyen Thai Ngoc DuyFeb 5, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.