From: Junio C Hamano <gitster@pobox.com>
To: Kristofer Karlsson <krka@spotify.com>
Cc: Kristofer Karlsson via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org,
Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH] t3070: skip ls-files tests with backslash patterns on Windows
Date: Wed, 03 Jun 2026 23:23:10 +0900 [thread overview]
Message-ID: <xmqqecinsnxt.fsf@gitster.g> (raw)
In-Reply-To: <CAL71e4MLyEEWtrHvB2K+stZUq6s+5sQUpSjmos3F9aVo3ej=Fw@mail.gmail.com> (Kristofer Karlsson's message of "Fri, 29 May 2026 10:04:48 +0200")
Kristofer Karlsson <krka@spotify.com> writes:
> On Thu, 28 May 2026 at 22:26, Junio C Hamano <gitster@pobox.com> wrote:
>> Two questions.
>>
>> * Has this been broken on Windows since October, or has something
>> external change on Windows recently? I do not know. Anybody
>> knows?
>>
>> * Is this change a workaround that sweeps ugly breakage under the
>> rug, or is backslash inherently unusable as an excape character
>> when handling paths on Windows (which I am afraid would make
>> wildmatch fairly useless there)?
>>
>
> I am fairly new to the git ecosystem as a developer (not as a user),
> so I am not sure how long this has been broken. The backslash patterns
> in the ls-files test path predate 8a6d158a - patterns like 'foo\*'
> and '[\-_]' have been there since de8bada2bf (2018) - so it may
> have been failing for a while before anyone noticed.
Hmph.
> My thinking was that it would be good in general if the CI results
> were green and did not include false positives for errors that we
> know cannot work on this platform. The risk is that people stop
> looking into CI failures in detail because they start to assume it
> is the same old backslash problem.
Oh, no question about that.
> That said, there is also a risk that the real underlying issue does
> not get fixed. I am hoping it is sufficient that the BSLASHPSPEC
> prereq and the case *\\* filter make it obvious to anyone reading
> the test what we are skipping over and why.
>
>> Will queue. Thanks.
>
> Thanks! It felt a bit heavyweight to add noise to the list for trivial CI test
> changes but I suppose the process is the same even if it does not
> affect the production code.
Sure. I just found it a little disturbing to declare that there
won't be ways on Windows to quote special letters with backslash
when writing wildmatch patterns. But if some Windows folks got
motivated enough, they are capable of lifting the prereq when they
fix the underlying code as well, so it probably is not something I
should be worrying too much about.
Thanks.
prev parent reply other threads:[~2026-06-03 14:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-28 9:00 [PATCH] t3070: skip ls-files tests with backslash patterns on Windows Kristofer Karlsson via GitGitGadget
2026-05-28 20:25 ` Junio C Hamano
2026-05-29 8:04 ` Kristofer Karlsson
2026-06-03 14:23 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqecinsnxt.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=krka@spotify.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox