Article View: linux.kernel.git
Article #1927Re: [RFC PATCH] submodule: make '^/' work like '../' but with an absolute path
From: Stanislav Aleksandrov
Date: Fri, 30 Oct 2026 15:08
Date: Fri, 30 Oct 2026 15:08
17 lines
11639 bytes
11639 bytes
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!
Technical Details
Message-ID:
<20261030150806.3856050-1-lightofmysoul@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73910-linux-kernel-git=dewy.ruReferences:
<20260929185122.3127574-1-lightofmysoul@gmail.com> <CA+P7+xoSd2rsHpw+n5vCrcqXRibG6zH+SKCsVXA0OW-VZN_+=g@mail.gmail.com> <20261025212517.479922-1-lightofmysoul@gmail.com> <CA+P7+xo8J_+3QECoGHnN1AxXPpjaKaHp3VoN9EEcyhZ+Q1fzew@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73910-linux-kernel-git=dewy.ru
From: lightofmysoul@gmail.com (Stanislav Aleksandrov)
Newsgroups: linux.kernel.git
Subject: Re: [RFC PATCH] submodule: make '^/' work like '../' but with an absolute path
Date: Fri, 30 Oct 2026 15:08:06 +0000
Organization: Usenet Network
Message-ID: <20261030150806.3856050-1-lightofmysoul@gmail.com>
References: <20260929185122.3127574-1-lightofmysoul@gmail.com> <CA+P7+xoSd2rsHpw+n5vCrcqXRibG6zH+SKCsVXA0OW-VZN_+=g@mail.gmail.com> <20261025212517.479922-1-lightofmysoul@gmail.com> <CA+P7+xo8J_+3QECoGHnN1AxXPpjaKaHp3VoN9EEcyhZ+Q1fzew@mail.gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2262564"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:JU8wxmjbx8LphWCXpqX2sSP4eDE= sha256:nL5P0J03zDQiIqQ8jFWxDsKPlnjfEpll2Wd9QAjl4Rs=
sha1:QUpdUvIRAPo9agDR2qMmNeA7BRI= sha256:gBAOc2+Zjg/biNInxWM7BTAAOiOzW2qnWoWWfaWT3dM=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 3236B125CA0; Fri, 30 Oct 2026 18:12:04 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id pjQy5qOiYLZd;
Fri, 30 Oct 2026 18:12:01 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-73910-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 275AB125CA1; Fri, 30 Oct 2026 18:11:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 5B98E30A33; Fri, 30 Oct 2026 15:08:27 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793372905;
b=QAmoOEJkRwe4USAvG01YULjlRecnFFrTQ/HeryNaWEE3AFb8CSe5eeES+bQxx0U60e7T
7xdGgzCHWp1qby92LjUc/rV/C9J+TNT89PqxuWQ0ID8bJLSBTApMGPnokk5tSWd8ZCdRY
mzceF/XatS0vs4P8fE7TySbfHT5+yVs4kOBDuGQC9i63N3Zl4PtqNZWdZeCfHWDbRBf/+
NE6wNlFqM6+oJqNaeqvsT1vL9UeJKoF93ZrJobumKw1faw/ZC/b+HUZ9OHulce5D5NfUu
SigA0vB50Hn0ADYyr0BzEr98onZc0hT7UhWFy8P9ybxLwhaTqSVltMNwHiMjFTWsLsQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793372905;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:
Content-Transfer-Encoding;
bh=6OapNeeBcRKFFF+KaPaa6LHndNzv+RsOOgh1kNdPKb8=;
b=44dl+RjjqfRQ3boVqXoO/aNgrYazY/d6wF0sOnAiWhO6fW6lbHJZZIwHg7CfWAfJMAO6
i3qvQl7wbq4q4RPzGAu0ihdQU+wLYs4HU/2ngXgqjQYEzZvP7dU3g2bjaMPtCdIMB/Ml2
irja8u2GOsmPqPcEsxzUy7HIvm+kwkWVTHmK2GLoy/OeV4NVWbONT/m/R6KWYdhZmb7Kx
gJyHb9OTCq02hgxtrwse1k0A0JJo71IrWPBRlGFfxARdlZD3EJVUrbfDDeA4P31Rlzeu7
auWSjjS0cin1tjdhxLIrqevTgpqFw+VKICK0ZYrGgdPJRFEEkEc3P1dVwSa30stSmhw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="oftwk/IX";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id C4F94606A322;
Fri, 30 Oct 2026 15:08:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=oftwk/IX
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.50
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793372904;
b=24COilkvuaTsJft+1te6GgeZMcAXQ3DlmfqV4U1tCvauIQ46ZirXdWBfYremAWPs0kAa
waLTLk21GaSWnhDbZs8/CG9vHkPfRvOT35KWVtQmJ0iaRzrtw4pO/lI+dpOqXR+8BpjCC
wbMdl5BudzHtn1LZYvIHVOvTY5qg45PLlm05wSpvJFIT7sxEuJFS5S9DpZA4hME8nFsz3
6WoZ2Pnxl6uowagwFNWjNdFb4nHERAfeQKoy/a1c+ORR1k5bQTAcu8kO2tz5VSw3io8O5
T37xWr85T64/EnS9kSZxI5nrUBwtj1YqSlM9ojc1uqnWr6YTcWsZrs8NjBBX4QPJjIQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793372904;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:
Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:
Content-Transfer-Encoding;
bh=6OapNeeBcRKFFF+KaPaa6LHndNzv+RsOOgh1kNdPKb8=;
b=2Oo8YmM8b/KCO4+SEOa13SQcerZNn48W6VkZpTSeJgnGDGpY94IsTkQjCsyP4Tq4KlVO
la0P3XHQFFTuzCHGWcEvOVYxxYTcNcHMYW6PwCgDJKTlxdIxOigtq2soc0648Gv/re1WP
F0mC8vD4RWnAR4sR/1JOwgjm0TGMc8kf1aEstJgyatFfRXMKEEI/IyOu28KcsTMU5/ygz
YCe8t/SrPYsYgzBlMMIbKlDIAKa+Hw+4YUXAFRKGMuO1k/pWBhgFaKbguBDBkii6FT3Yb
gauMjn0PSngGJGaVjrdnX+O/USHkPd0qpwI0dFn5/0XSfX01bzErFK3mAPuGvr/Lo5w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="oftwk/IX";
arc=none smtp.remote-ip=209.85.208.50
X-Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92C0F606A31A
for <git@vger.kernel.org>; Fri, 30 Oct 2026 15:08:24 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 92C0F606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-6b4b7dee316so808100a12.0
for <git@vger.kernel.org>; Fri, 30 Oct 2026 08:08:24 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793372903; x=1793977703; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=6OapNeeBcRKFFF+KaPaa6LHndNzv+RsOOgh1kNdPKb8=;
b=oftwk/IXIAuo7g2xPDuU6yZUfWMFFhMexZgGUPBlzzvFaUZ03EtCUoiMNEe1nJ3roq
bbnoY0jHJ/85UsciHDB3p+/ax2KNEnW7AFp+nR3T1TswHELlkC+lKi7g/DappgJRCrGo
ZBLbuwFnZ0qt2db15xBBj67f7w1OCvGqu7TULb8qDn4Z9Kye0otOcAf5jfN4azYAfIEC
n0y6VDInBLWs46PPc3L+9wrzCY59mrCibxHUJmkFIP2gQhPYo0N/mS4C4tzefiX5hWvd
0Vb7okIKKJ0p/olQ9pbj9yKCkjbz7kQdd41Z2gD6EZMyHjXoH3YN6MFf9rFkBLovChNI
iI9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793372903; x=1793977703;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject: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POTiMVXS216vPsxbPxaK4+2BWokpIgs/S/uyiwpKrIXGvoi62hdfSDq6U46EP+
qTnCj7LGyDOo6OadOOPTup+foiuRefcW5glxFq4VPCjfYKP8JYCujA3Z81Oq7NbQW28k54q42jy
h9/bMluaqLxvoLZTPOLd8wah7Es=
X-Received: by 2002:a05:6402:223c:b0:6b4:2806:b057 with SMTP id 4fb4d7f45d1cf-6b4d4d80570mr1273009a12.35.1793372902947;
Fri, 30 Oct 2026 08:08:22 -0700 (PDT)
X-Received: from flare5 ([212.58.121.92])
by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6b4ec9a7d4dsm48558a12.4.2026.10.30.08.08.21
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 30 Oct 2026 08:08:22 -0700 (PDT)
X-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>
X-Mailer: git-send-email 2.55.0
X-In-Reply-To: <CA+P7+xo8J_+3QECoGHnN1AxXPpjaKaHp3VoN9EEcyhZ+Q1fzew@mail.gmail.com>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list