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

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
Previous: Alessio Attilio via GitGitGadgetNext: Alessio Attilio via GitGitGadget
Message 17 of 26 in “status: warn about stale submodule URLs”
  1. status: warn about stale submodule URLsAlessio Attilio via GitGitGadget, Nov 27, 2026
  2. D. Ben KnobleNov 27, 2026
  3. 0/2 status: report when submodule URLs are out of syncAlessio Attilio via GitGitGadget, Nov 27, 2026
  4. 1/2 submodule: prepare URL helpers for reuseAlessio Attilio via GitGitGadget, Nov 27, 2026
  5. 2/2 status: warn about stale submodule URLsAlessio Attilio via GitGitGadget, Nov 27, 2026
  6. Junio C HamanoNov 27, 2026
  7. ATTILIO ALESSIONov 27, 2026
  8. D. Ben KnobleNov 30, 2026
  9. 0/2 status: report when submodule URLs are out of syncAlessio Attilio via GitGitGadget, Nov 27, 2026
  10. 1/2 submodule: prepare URL helpers for reuseAlessio Attilio via GitGitGadget, Nov 27, 2026
  11. Junio C HamanoNov 28, 2026
  12. 2/2 status: warn about stale submodule URLsAlessio Attilio via GitGitGadget, Nov 27, 2026
  13. Junio C HamanoNov 28, 2026
  14. Junio C HamanoNov 28, 2026
  15. 0/3 status: report when submodule URLs are out of syncAlessio Attilio via GitGitGadget, Nov 28, 2026
  16. 1/3 submodule: move URL helpers into submodule.cAlessio Attilio via GitGitGadget, Nov 28, 2026
  17. D. Ben KnobleNov 30, 2026
  18. 2/3 submodule: make URL resolution repository-awareAlessio Attilio via GitGitGadget, Nov 28, 2026
  19. D. Ben KnobleNov 30, 2026
  20. 3/3 status: report when submodule URLs are out of syncAlessio Attilio via GitGitGadget, Nov 28, 2026
  21. Junio C HamanoNov 29, 2026
  22. 0/4 status: report when submodule URLs are out of syncAlessio Attilio via GitGitGadget, Dec 1, 2026
  23. 1/4 submodule: share repository-aware URL resolutionAlessio Attilio via GitGitGadget, Dec 1, 2026
  24. 2/4 status: warn about submodule URL mismatchesAlessio Attilio via GitGitGadget, Dec 1, 2026
  25. 3/4 status: preserve customized submodule remotesAlessio Attilio via GitGitGadget, Dec 1, 2026
  26. 4/4 status: test submodule URL warningsAlessio Attilio via GitGitGadget, Dec 1, 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.