Re: [PATCH v4 1/3] submodule: move URL helpers into submodule.c
- From
D. Ben Knoble <ben.knoble@gmail.com>
- Date
- Nov 30, 2026, 15:54 UTC
- Message-ID
- <CALnO6CCP1=G0eF_GTgCkc4MxiK-zXS7yk_q_v5sMxOxVC6afTQ@mail.gmail.com>
- In-Reply-To
- <b09e8501ed8c6d29b75e021b72dccad81a03cfbd.1795884822.git.gitgitgadget@gmail.com>
Hi Alessio,
On Sat, Nov 28, 2026 at 11:53 AM Alessio Attilio via GitGitGadget <gitgitgadget@gmail.com> wrote:
Show 11 quoted lines
> > From: Alessio Attilio <attilio.alessio@protonmail.com> > > Move the relative submodule URL resolver and the helper that > computes the path back to the superproject from > builtin/submodule--helper.c to submodule.c. This lets other > callers reuse the helpers. > > Return non-relative URLs unchanged before consulting remote > configuration, so the resolver handles every URL form itself. > Keep the repository parameter change for the next patch.
This comment applies to [2/3] also: it is normal to explain a preparatory commit by discussing what it prepares for ("lets other callers reuse the helpers"), but I find the sentence "Keep the repository parameter change for the next patch" very unusual.
A future reader must wonder: what change? (And why "the change"?) The answers only make sense in context of prior iterations, not necessarily in context of the final commits upstream.
I would rephrase (or drop that line altogether):
We also want to make these helpers repository-aware, but do that in a later step to make it easy to see the code movement.
perhaps?
-- D. Ben Knoble