From: Kristoffer Haugsbakk Date: Tue, 30 Sep 2025 13:36:21 GMT Subject: Re: [PATCH v2 06/10] submodule: encode gitdir paths to avoid conflicts Message-ID: <03d3cd99-b319-4e9f-8ad8-2c1174efea28@app.fastmail.com> In-Reply-To: <20250908140117.262205-7-adrian.ratiu@collabora.com> On Mon, Sep 8, 2025, at 16:01, Adrian Ratiu wrote: > Based on previous work by Brandon & all [1]. > > This encodes submodule gitdir names to avoid colisions like nested gitdirs s/colisions/collisions/ > due to names like "foo" and "foo/bar". > > A custom encoding can become unnecesarily complex, while url-encoding is s/unnecesarily/unnecessarily/ > relatively well-known, however it needs some extending to support case > insensitive filesystems and quirks like Windows reserving "COM1" names. > Hence why I opted to encode A as _a, B as _b and so on. > >[snip]