Re: [PATCH] ls-tree: do not quote %(path) with -z
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 19, 2026, 01:24 UTC
- Message-ID
- <xmqq8q2p1ulh.fsf@gitster.g>
- In-Reply-To
- <CAJeEYUaJt49oz+Fq7qwWGyB9p=Hibdzd3113FBhbK1RDn3oHug@mail.gmail.com>
Noam Cohen <noam@noam.me> writes:
> We could avoid the filesystem and synthesize the tree with "git > mktree" instead, which is what I had at first, but that made the > test noticeably more complicated than a test_commit in the setup.
Yeah, that, with forced core.quotePath setting, was what I had in mind.
But it is not a requirement to avoid stepping outside US-ASCII while writing tests. It is much better to have tests that use bytes from outside US-ASCII than not having at all. It is just that it would be nicer if we do not have to worry about platform anomalies that cannot store characters outside US-ASCII range.