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

Re: [PATCH] editorconfig: fix style not applying to subdirs anymore

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 11, 2026, 17:32 UTC
Message-ID
<xmqq1phqqnjv.fsf@gitster.g>
In-Reply-To
<1eb3b78c-5833-4fa9-83f6-237d4a3e78d3@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 20 quoted lines
> On 11/03/2026 07:09, Patrick Steinhardt wrote:
>...
>>    If the glob contains a path separator (a / not inside square
>>    brackets), then the glob is relative to the directory level of the
>>    particular .editorconfig file itself. Otherwise the pattern may also
>>    match at any level below the .editorconfig level.
>> 
>> What's interesting is that the _whole_ expression is considered to be
>> the glob.
>
> Ouch, I'd missed that, thanks for fixing it
> ...
>>    [{{,**/}*.{c,h,sh,bash,perl,pl,pm,txt,adoc},config.mak.*,{,**/}Makefile,templates/hooks/*.sample}]
>>    indent_style = tab
>>    tab_width = 8
>> 
>> This starts to become somewhat hard to read, so the duplication feels
>> like the better tradeoff.
>
> Agreed
Thanks, both.
Previous: Phillip Wood
Message 3 of 3 in “editorconfig: fix style not applying to subdirs anymore”
  1. editorconfig: fix style not applying to subdirs anymorePatrick Steinhardt, Mar 11, 2026
  2. Phillip WoodMar 11, 2026
  3. Junio C HamanoMar 11, 2026

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.