Article View: linux.kernel.git
Article #3384Re: [PATCH v14 1/5] fetch: add remote.<name>.fetchRefmap
From: Phillip Wood
Date: Thu, 19 Nov 2026 10:53
Date: Thu, 19 Nov 2026 10:53
50 lines
13237 bytes
13237 bytes
On 17/11/2026 21:06, Junio C Hamano wrote:
> Phillip Wood <phillip.wood123@gmail.com> writes:
>
>>> I can buy it if the suggestion was to allow passing --no-refmap from
>>> the command line (or would --refmap="" work?) to ignore .fetchRefmap
>>> configuration, though.
>>
>> I think --refmap="" might work as --refmap overrides the config and
>> --refmap="" is the documented way to ignore the ".fetch" config.
>
> Do you mean ... ignore the .fetchRefmap config (not ".fetch", which
> is used as the default for refspecs and not value to a dashed
> option)?
Yes I meant --refmap overrides .fetchRefmap
> All that said, it feels much more flexible if a refspec with a
> destination (whether on the command line or in the configuration)
> simply ignores the refmap. In other words, the refmap would only
> apply to refspec entries that lack a destination, leaving elements
> with their own destination untouched.
I agree
> This way, we won't have to worry about what --refmap="" means.
>
> So I'm completely fine with going in that direction. The only thing
> I care about is keeping a clear one-to-one relationship between the
> configuration and the command-line option: the configuration sets the
> default, and the command-line option overrides it.
Great. So I think we'd want a preliminary patch to ignore --refmap when
there is a destination on the commandline and this patch to be tweaked
so that
git config remote.cabal.fetch master
git fetch --refmap=refs/heads/*:refs/test/* cabal
and
git config remote.cabal.fetch master
git config remote.cabal.fetchRefmap refs/heads/*:refs/test/*
git fetch
both fetch "master" and store it under "refs/test/master"
Thanks
Phillip
Technical Details
Message-ID:
<2111d174-9571-4eb5-82cb-92f5330ae24c@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75806-linux-kernel-git=dewy.ruReferences:
<pull.2412.git.git.1789829246437.gitgitgadget@gmail.com> <pull.2412.v14.git.git.1794681496.gitgitgadget@gmail.com> <c63699b40228b1d47368778d7397b1ddc6ba2a36.1794681496.git.gitgitgadget@gmail.com> <5a1a9f6b-48c8-4daa-9059-bf9459587a17@gmail.com> <xmqq7bibh3f5.fsf@gitster.g> <c40477c7-e1d8-4af1-859b-b739dac4bc86@gmail.com> <xmqqfqwzcgmu.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-75806-linux-kernel-git=dewy.ru
From: phillip.wood123@gmail.com (Phillip Wood)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v14 1/5] fetch: add remote.<name>.fetchRefmap
Date: Thu, 19 Nov 2026 10:53:36 +0000
Organization: Usenet Network
Message-ID: <2111d174-9571-4eb5-82cb-92f5330ae24c@gmail.com>
References: <pull.2412.git.git.1789829246437.gitgitgadget@gmail.com>
<pull.2412.v14.git.git.1794681496.gitgitgadget@gmail.com>
<c63699b40228b1d47368778d7397b1ddc6ba2a36.1794681496.git.gitgitgadget@gmail.com>
<5a1a9f6b-48c8-4daa-9059-bf9459587a17@gmail.com> <xmqq7bibh3f5.fsf@gitster.g>
<c40477c7-e1d8-4af1-859b-b739dac4bc86@gmail.com> <xmqqfqwzcgmu.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2853495"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2vxjt2TfULtidbvkn3hViuXZDGs= sha256:uEotGQPwSSKWtX47dt/dOA25Un9q3RQrylQvOBID1CQ=
sha1:SRIj5GhlQWyUMsg/s/zhnA/PjuY= sha256:a0DWdIF3qe030IHzlnqOvhfy95iq2E/pJ9GvmktnihQ=
Content-Language: en-US
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 E11151155D5; Thu, 19 Nov 2026 13:53:56 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.049
X-Spam-Status: No, score=-2.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, FORGED_GMAIL_RCVD=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 wMPbaP-SgB88;
Thu, 19 Nov 2026 13:53:53 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-75806-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 059E2115558; Thu, 19 Nov 2026 13:53:45 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 909BE246AD0; Thu, 19 Nov 2026 10:53:42 +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=1795085621;
b=JmczxW0P3QQ4wt+H+uai49v/knBulrjCnAoeyV9AevWh8rxsEzP8W2YrFcz9xHrl5UO9
AU9wLmwZa8nVZY4QAcLVSd1bK2nC/0kCX8AmEsIrJvnSeTiYYjtTNRlvA+oSN+a3Dcc+U
V4EU+f8ZOTjPrFo97Ecpd/cnneGlh3rHhb9XNvmsbmFmloj8hsvDxfnAB6aT0pvyvpH9l
vzXzV6nd0ABZ2ZhVGbmLK85hWT6Od40mEVsROt4XABeemTDd7P4mfTvjlplFnNZ0CHuY/
IbO/dbBl4likjrRl19PInRVRDwU0AdJusCSMemuk43EBvew+/afh44rBWMUiAyrXapw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795085621;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc:
References:Content-Language:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=RLXg1m0A8FEwfKOwMc0VkKK52RFkksA0rgidhh95lgA=;
b=HnpwuFHC9Hn2/ZY3DqTXEIfwMHia3tOmzfYkooU08iC0B51ZIAgFuu25FAs4EpiA692g
Sp0PRJMmUQqYWCKF2aUApCKraVcxSIyUPDdSHJMil+6xfFxD4alewt2DQQFGToiZMTUcz
EuMwcv9VABqe4vtVAdQs1pY00lW++W06lA9sZZSy+EHd/Uc+atMr+sV8/7hhWEzJyajPF
WHgxw9ZjwKxnPrOBaQLHHczsaM6hTN/ZsVMbLgIOazc5umgWpmMrevhH/SzJBQnC5nmBf
S8mIGPQMYE1+cCeAUP1Cga4alDxArY2/aNr/EkdTtoT0PuFcjt2qleVBSLpAmoWgLtw==
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=vHjUkbvg;
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 30069606A330;
Thu, 19 Nov 2026 10:53:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=vHjUkbvg
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.43
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795085620;
b=1KIi8XFP/CSCEyJ/JF3F919qEKjEjyNNiDyjieCZxzk6J4tKEsC42ZpLIDLGzDGrcASs
dTUWivbx/jzN/onKo9pl81IVTk1Du89BhWrcW+E+c7RiXw4hL4SwKmecvoTzsN44WGPCP
6BCCC9BuUJV0vit8CeZ2sJbie5D4RkPtnbUIGcg4Okw0LZg1kpxuoipoyqHCSgvlcSCe7
gMe4mhToTod4K7rBNzkQTDV+aBWgt0b/Xdrw9YQn0lx4MtQpNWyld0JORd9ESogRrSMcM
jYa7EUySsnL8338BBHHbSyE+LHz3RwRVwa4DQanbgDFYRrPVlOdgtsByJ/Tma/SpiZQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795085620;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc:
References:Content-Language:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=RLXg1m0A8FEwfKOwMc0VkKK52RFkksA0rgidhh95lgA=;
b=Up0VsoiwVEwPvYJto6CA5fpZiOp8yweytUJGZipUbX3+RePZZ/KixaGYUhGz1GLzl6Kw
D4i5+l5qzlzcUwS16qqCc+KEPxd+k6kuSuv/lWu+VUbPvdaSyPpLgcZzFOsaVv4PQ4kTX
e0bmCtm9GGqDztQMzHwYBCtC0QQk0ZKBa+mH9+MyggE3GBCmlL/EUtw5iqtrS8ROE7Dw/
rPCRzcQZm2CinGjpGorUEsZWWysCIS/WsVGHTEPEZYyut3jrWMUBHVjar00x+H46m2QH4
iDl1Y545845nnep9vbOlh3ZnjLvzCw4vEJuu17y+XSOQIyPrYIFWu2FTzWAbg+11y9w==
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=vHjUkbvg;
arc=none smtp.remote-ip=209.85.221.43
X-Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43])
(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 F4063606A324
for <git@vger.kernel.org>; Thu, 19 Nov 2026 10:53:39 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F4063606A324
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-wr1-f43.google.com with SMTP id ffacd0b85a97d-492f563d1c6so777048f8f.3
for <git@vger.kernel.org>; Thu, 19 Nov 2026 02:53:39 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1795085618; x=1795690418; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:subject:reply-to:from:user-agent:mime-version:date
:message-id:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=RLXg1m0A8FEwfKOwMc0VkKK52RFkksA0rgidhh95lgA=;
b=vHjUkbvgz5FbDe7QIoRAh29eRO9aIoDoprjkR5zBpDQlc9r41QGlbuAe+BzEMhILcu
Eno7UCoN9B1GYMHh/0OihN/LHQLU4d2bmoNxruBPdfCb4R9NSTLJgHOQO/5cnciXmcWL
C/vW64UAh3ZKR6cBiSFZtELQ3nThmyN+QQd9DVy6At+XWVzIdKL/7TP3CxWZLLHqYvoc
n34CxFqCp9+6N0zqEsNfKjeLLRtVHAdL/yf+zJAICg6aUtmFSqG7Q6HpuTBJGb9VD34/
meYstMFIzNgSX5ye7xsW6nhhAAfW3Ul3phhHKJs0FcLAYuLVXE9FRKbEu7FzU/jkhwMI
fvFg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1795085618; x=1795690418;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:subject:reply-to:from:user-agent:mime-version:date
:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=RLXg1m0A8FEwfKOwMc0VkKK52RFkksA0rgidhh95lgA=;
b=bicA4feFW6q2tpsthPeedYyj79NVYaGQQGiSYnljRQV/Ji7RYL8G0KMnaYsafp/QjP
axA6kolPYO9N18rmasT9rEFWBX2HPbUJ/fPFMxemoJOsH+LOHPzFOFDOFu0LWA5H1TYj
ilE9m3THfaL/1qCpkCBWgHZTgQC0k6JMJ3IEclOZFi44T9fxppmqr9gJ0YloR/udYFwl
8Jxa5/LHqv1hdUbIpTM78M5jX+P6T7PT5GKLEzjf8KM3GZQW1gKhv7Ny+nAPjQ50/lHW
ZGMIu0zEXHjvA3h6/22Hhy2kzECqoYY+CCjS2pS+lOVgqJ5+OaSHs4s9TcZS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Received: from ?IPV6:2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f? ([2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a65100c6bfsm9669304f8f.2.2026.11.19.02.53.37
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Thu, 19 Nov 2026 02:53:37 -0800 (PST)
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-User-Agent: Mozilla Thunderbird
X-Reply-To: phillip.wood@dunelm.org.uk
X-Cc: Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org, "D. Ben Knoble" <ben.knoble@gmail.com>,
Matt Hunter <m@lfurio.us>, Harald Nordgren <haraldnordgren@gmail.com>
X-In-Reply-To: <xmqqfqwzcgmu.fsf@gitster.g>