Git development
 help / color / mirror / Atom feed
From: Stanislav Aleksandrov <lightofmysoul@gmail.com>
To: jacob.keller@gmail.com
Cc: git@vger.kernel.org, Patrick Steinhardt <ps@pks.im>,
	Adrian Ratiu <adrian.ratiu@collabora.com>,
	Jeff King <peff@peff.net>, Junio C Hamano <gitster@pobox.com>
Subject: Re: [RFC PATCH] submodule: make '^/' work like '../' but with an absolute path
Date: Fri, 30 Oct 2026 15:08:06 +0000	[thread overview]
Message-ID: <20261030150806.3856050-1-lightofmysoul@gmail.com> (raw)
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:
> 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!

  reply	other threads:[~2026-10-30 15:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 18:51 [RFC PATCH] submodule: make '^/' work like '../' but with an absolute path Stanislav Aleksandrov
2026-10-25 19:42 ` Jacob Keller
2026-10-25 21:25   ` Stanislav Aleksandrov
2026-10-25 23:11     ` Jacob Keller
2026-10-30 15:08       ` Stanislav Aleksandrov [this message]
2026-10-27 17:39 ` Junio C Hamano
2026-10-30 15:07   ` Stanislav Aleksandrov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261030150806.3856050-1-lightofmysoul@gmail.com \
    --to=lightofmysoul@gmail.com \
    --cc=adrian.ratiu@collabora.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jacob.keller@gmail.com \
    --cc=peff@peff.net \
    --cc=ps@pks.im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox