Article View: linux.kernel.git
Article #2192Re: [GSoC Patch v7 3/8] repo: add path.superproject-root with absolute and relative suffixes
From: Justin Tobler
Date: Mon, 02 Nov 2026 21:43
Date: Mon, 02 Nov 2026 21:43
42 lines
11771 bytes
11771 bytes
On 26/09/27 05:14PM, K Jayatheerth wrote:
> +static int get_path_superproject_absolute(struct repository *repo, struct strbuf *buf)
> +{
> + struct strbuf superproject = STRBUF_INIT;
> +
> + if (!get_superproject_working_tree(repo, &superproject)) {
> + strbuf_release(&superproject);
> + return 0;
nit: The early return isn't really need here. This instead could be:
if (get_superproject_working_tree(repo, &superproject))
format_path(buf, superproject.buf, "", PATH_FORMAT_CANONICAL);
> + }
> +
> + format_path(buf, superproject.buf, "", PATH_FORMAT_CANONICAL);
> + strbuf_release(&superproject);
> + return 0;
> +}
> +
> +static int get_path_superproject_relative(struct repository *repo, struct strbuf *buf)
> +{
> + struct strbuf superproject = STRBUF_INIT;
> +
> + if (!get_superproject_working_tree(repo, &superproject)) {
> + strbuf_release(&superproject);
> + return 0;
Same thing here.
> + }
> +
> + format_path(buf, superproject.buf, repo->prefix, PATH_FORMAT_RELATIVE);
> + strbuf_release(&superproject);
> + return 0;
> +}
The rest of this patch looks good to me.
-Justin
Technical Details
Message-ID:
<aukCnmlJzZmOTihM@denethor>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74226-linux-kernel-git=dewy.ruReferences:
<20260716012138.6714-1-jayatheerthkulkarni2005@gmail.com> <20260927114420.59724-1-jayatheerthkulkarni2005@gmail.com> <20260927114420.59724-4-jayatheerthkulkarni2005@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-74226-linux-kernel-git=dewy.ru
From: jltobler@gmail.com (Justin Tobler)
Newsgroups: linux.kernel.git
Subject: Re: [GSoC Patch v7 3/8] repo: add path.superproject-root with
absolute and relative suffixes
Date: Mon, 2 Nov 2026 15:43:20 -0600
Organization: Usenet Network
Message-ID: <aukCnmlJzZmOTihM@denethor>
References: <20260716012138.6714-1-jayatheerthkulkarni2005@gmail.com>
<20260927114420.59724-1-jayatheerthkulkarni2005@gmail.com>
<20260927114420.59724-4-jayatheerthkulkarni2005@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
logging-data="3048235"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:GY0huhdNZPfrTTyhM9Gw0WlYoYk= sha256:G368Q/Ybd+yTKNAbiHTG6OIg0Ih+6QSsqqz3d4bEUBM=
sha1:jw9Ay9sCvijMIa9ai6r7qVV3tjA= sha256:JMTdqoFVf3OgTDb5XOtzwfxyb3YqINYtEWYEhBRhKag=
Content-Disposition: inline
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 CCFAC1126BF; Tue, 3 Nov 2026 01:45:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 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.249,
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 GNTCFn8vj7UC;
Tue, 3 Nov 2026 01:45:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-74226-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 19B061126BD; Tue, 3 Nov 2026 01:45:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id BDB152CA3F; Mon, 2 Nov 2026 21:43:26 +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=1793655805;
b=kVZHEhAwBlWJ4dv4L10dM6eBwOLDGkmsAjFBkWjWreA66uk88WXtBlQsKVnXKoMSufqE
iKeDJ7EY7LDaNa4ZKk3w965pK+ZO6pYoEsyc8kgIj0A16sUZKxDHyA+k6kzXRONSnlEd1
ArNFsxHJpjEXOw2TZsCyVCHRczCrCVeNvf31yW+PSUF2MbuSmrrKwCiHEDJ2q8BJ+bzYY
msr285WjxxJ0NYgbfKVPY30y5LF6mqvkpwXR+Ry5T/ZoxQYCrh9esiGQpmVeTCRI8c+PC
hzWgcI66QMJ3V8kVi2f9qEBTQMt7s9ghbIPfK3063wDr6T1ETMJQrzJSjwpQ+FtZjhg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793655805;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:Content-Type:Content-Disposition:
In-Reply-To;
bh=2NgHDpJIzU0hSpuJai2DAYiKwsMcvgn3OtjdvFBI6Ik=;
b=Cd0d3f1tJgKdpvpTfReWUM6hYiINIw/ZG89EtQZoyYfBh6f5UwZ1NEF0DMvvCIwcweJ8
uQ+dq1LfoZdavtM0EI1geLRhlUMjWpFzlgl5T5m+/O/mKAOstc/QYzbLXh2lK8BKku514
RGDrqs8v9tTtBMPCfDWjVc6z1l6zY5RSO71xLu2Uf5MOUJ1bpW23r0n4umMSpKUCVv0Et
SSIOgyi1CDN0AlUsexVcodHmm03GYsOTje5xR8nieImPQCoWlI6q1Jhe9xUrqt0j601wB
AwjOajFms51MLVoRCshxpHRTseKcC81pCMZJHAoefAqck9aI2jlDcJVxiMGZ2O1MCiw==
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=VaAdJQfU;
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 F1596606A32E;
Mon, 2 Nov 2026 21:43:24 +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=VaAdJQfU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.161.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793655804;
b=Vcl8smt766FOzzqBt3LSbFxHHEWZHWXjs4zrixDDqRnsGmVzx6f3/O91vUEyHJGy+7Id
LTpg1YkdpwBzCTXsHQ57728BNhqvZ31fqqxg7AF45VGOMWm1ThrCoArXn5Ba7p+PwSV1p
LxFj+Wov3NSV1y0QKIv6Vkdo48Q2LkIptZiRleiJt+03WWpY6u7Tb1ZKF48GMu9BkDFVM
iGVgrDVJb69guG9D2BWaKJw/QsDniYu9k1esHMzHyt04FLKG669Jw2aw4ZEOqF8RPhzNZ
XFjgcRT1amytnSHftNsfmN1MD0ICkDcThaf5om8cQVqsqPJF4UavTlQiqw3jgXjiZ/w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793655804;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Date:From:To:Cc:
Subject:Message-ID:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To;
bh=2NgHDpJIzU0hSpuJai2DAYiKwsMcvgn3OtjdvFBI6Ik=;
b=b4mtbzFF+xCRrk3+D8T2fOaz9O80AJO8jP/3BGjRnG9vOU3416QEPIk6Zdzu0eMVQ9Pn
6CsKgIsj464kwizwIC5u9LVTRO7qV4EX0Nsh9tBFiY+6i+JIqN84wLx9wspwhDxHdLMKt
rLQn3jiHpvvKOV876NChhiNfCGfyD1rNm+fpuyJQKUBoWMPWxE376no/Af9Rvc9pr08ru
rpknx5ePeCFG2OkxHK5kQ7DZvKW5GLeFg+hAJKFXKCngTLF2VLh0XtD/pi2UTyEdyNeXE
++ukM0gSjvz1VyPVJmAqOMVQ3IGaKo/9x+WTtndijNPVCZhD4/75iO8AsfRESWHpvMA==
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=VaAdJQfU;
arc=none smtp.remote-ip=209.85.161.45
X-Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45])
(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 B6BD9606A327
for <git@vger.kernel.org>; Mon, 2 Nov 2026 21:43:23 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B6BD9606A327
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-oo1-f45.google.com with SMTP id 006d021491bc7-6b8e2d8df4fso2516299eaf.1
for <git@vger.kernel.org>; Mon, 02 Nov 2026 13:43:23 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793655803; x=1794260603; darn=vger.kernel.org;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=2NgHDpJIzU0hSpuJai2DAYiKwsMcvgn3OtjdvFBI6Ik=;
b=VaAdJQfUM+HWD8P4HC/13y3l5fIb+7FwdP5LHU/jz9CI64rQclumiY1/EXxUODVg8W
ZLuWxzm2ZyY5wpPuLOVyc75sTWYFifnj6X5ZSs9Ovkqzq/tDGgoRlVXS47C0rvPwgZaG
FXbN+6bXYs82EszxBYAVlNx0pdPM3w5XoTE0XXWE6oNffTGGue9F3IZH2LeZtChfQ3T3
DnGnPd6zwy67gqlRN1ObGEmTf129GgklqxKPf/V2Udj5rNReqMxe8Ek2UXdOFbjaYN16
TPgRum/sqXIcdJ4MLomr83H9FYGkEVyf5BhAQZqsZxf1XPP9giAO/9S1TfpGvRrFzYTb
Shyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793655803; x=1794260603;
h=in-reply-to:content-disposition:content-type:mime-version
:references:message-id:subject:cc:to:from:date:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=2NgHDpJIzU0hSpuJai2DAYiKwsMcvgn3OtjdvFBI6Ik=;
b=lOzBhHZ3QMDaHDY77k7vYQ5RA6TkSj2DDqXmoOZwl3l47vXCQEhoHauYpEqQVegWcy
3G0sxu7fJm+gOZI0tLzNYFc2L4v7rWbik09mQH2TG8h0vZ/5Au2SVxwiasBkXO9VZa4l
Pagk+tfKLTYBHP6+MS0VSN3yaABSxwfDfFtA0+DB7+lPATDYZ/oSJdh1AuEdsgNHi64r
XzyeaQERjWbvW2cZtNeGd26uvR6Cc7Vh6obZ/fFe3W6tc7bPDfg4WfJei3tmVFKWKJSZ
Grv+J3tIVYGc5KwGzdzpP/EefU6+QVT106VJN5HvAW1bbnW77NrwuFnzj2l6QmrWk2R1
TPPQ==
X-Gm-Message-State: AFq9FYKuEnYo4c6+d8/nyNix+vgpTBB+sUFazoxQwHS2PxV1mTSEkqp+
qSF0exnN2ql+UoSfC3Gl/fic9VCAcAsAzeg7nhXqzlW4IihcuPN3jHSC
X-Gm-Gg: AYBFou3FzhzsbflWpIFA2MAledPYpQD+P1qBkr0YR+xOUGFfU2xNnEanTR2UsYGSmIy
sCHr35hnnbPHQchv74bewtB54vo3h/0rqZlTzztR6OLMNFApIvEOG2kEzTPr8g5PYql1eokK/zS
P6Vds1KvLlTxnr6mDqdVtRU3vPlY4uNcuCxtAc8BY3ppjcgnzrCzHgjDcr03ZGJ7+ZaI+D5Af55
rz2Xbx8SdczP6bY5cV+adUq4C164sG75qOvA6h1ZmfB+rmUVznDsfBj3R9E7CS1eTQMOeOk7ywf
Pvd4js1Qe4A/SeAilO/fVX6Rg/SBiC6lx9l1JeGgBrfeXLk1Fdp77zktq1qEI2eUYlv93QatEUL
OmQbS0NPyHcnmezkKN24+0my+CuOG1SGFC7ySLZva9RR52SylJh7EmVR6M+bN09KHQBvE29d+39
5t6GWe+rpRapZvUKErvshW6WZgZaWFFVkzfshFed/zqiAeZYmhNDMBwCMPyjQRrtpHBP+m/qSdz
crDp2WFPM8BJ6t5ul9KzygI327L/6cPCLjdP8GoiUd+Exbne4wj6OYTJ9gicbuPvaiTmhR68KAj
OtCUxX5wh2+842Z+w+h8OLIIM9DRGFYZlRX8U4Zl5dSA4m2UwlY6
X-Received: by 2002:a05:6820:83dc:10b0:6d8:e4b4:2873 with SMTP id 006d021491bc7-714f294aa4cmr5156725eaf.29.1793655802455;
Mon, 02 Nov 2026 13:43:22 -0800 (PST)
X-Received: from localhost ([136.51.44.64])
by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4a921a80881sm8193897fac.17.2026.11.02.13.43.21
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 02 Nov 2026 13:43:21 -0800 (PST)
X-Cc: git@vger.kernel.org, lucasseikioshiro@gmail.com, gitster@pobox.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
X-In-Reply-To: <20260927114420.59724-4-jayatheerthkulkarni2005@gmail.com>