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

Re: [RFC PATCH] submodule: make '^/' work like '../' but with an absolute path

From
SAStanislav Aleksandrov <lightofmysoul@gmail.com>
Date
Oct 30, 2026, 15:08 UTC
Message-ID
<20261030150806.3856050-1-lightofmysoul@gmail.com>
In-Reply-To
<CA+P7+xo8J_+3QECoGHnN1AxXPpjaKaHp3VoN9EEcyhZ+Q1fzew@mail.gmail.com>

On Sun, Oct 25, 2026 at 4:11 PM Jacob Keller <jacob.keller@gmail.com> wrote:

Show 9 quoted lines
> Yep, that lays out the full reasoning for why you'd want this. Forking
> the main repository could end up with broken submodule URLs unless you
> *also* fork the submodules. Depending on your project you may (or may
> not) want to do that, so having the option to use ^/ is good. Of
> course using "^/" would mean that forking both super and subproject
> would potentially break, until/unless you update your fork to point to
> the new fork URL. I guess that is more semantically correct, your fork
> of a super project woudl only change once you officially tell it to
> move to the appropriate fork.

Yes, that's intended. "^/" is for a submodule that stays where it is. If both are forked together, "../lib.git" still does the right thing.

Thanks for the review!
Previous: Jacob KellerNext: Junio C Hamano
Message 5 of 8 in “submodule: make '^/' work like '../' but with an absolute path”
  1. submodule: make '^/' work like '../' but with an absolute pathStanislav Aleksandrov, Sep 29, 2026
  2. Jacob KellerOct 25, 2026
  3. Stanislav AleksandrovOct 25, 2026
  4. Jacob KellerOct 25, 2026
  5. Stanislav AleksandrovOct 30, 2026
  6. Junio C HamanoOct 27, 2026
  7. Stanislav AleksandrovOct 30, 2026
  8. Junio C HamanoOct 31, 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.