Article View: linux.kernel.git
Article #4274Re: [PATCH v17 0/7] fetch: avoid fetching every branch of a new remote in a shallow repo
From: Junio C Hamano
Date: Wed, 02 Dec 2026 21:44
Date: Wed, 02 Dec 2026 21:44
32 lines
14154 bytes
14154 bytes
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes: > Changes in v17: > > * A refmap entry without a destination, such as --refmap=refs/heads/main or > --refmap=refs/heads/main:, no longer makes the fetch follow tags. Such > entries are skipped, and the test now covers them together with > --refmap="". > * --prefetch no longer drops an empty --refmap or an empty fetchRefmap, so > git fetch --prefetch --refmap= <remote> stores nothing again. > * A fetch for a remote without a refmap no longer copies its unmapped refs > for nothing. A cover letter for v(N+1) is not a substitute for a discussion on review comments on vN. By now, I think you have been here long enough to have heard the following. It does apply to you as well as others. It is not considered good manners to send a new iteration before first finishing the discussion on the reviews you received on your previous iteration. You respond to reviews, saying "I will fix this point", "I think this one is fine as-is because...", and so forth, wait for responses to your response, and eventually come to an agreement with those in the discussion, so both sides know what the next iteration should look like before you start working on it. Only after finishing all of that do you prepare and send a new iteration. Thanks.
Technical Details
Message-ID:
<xmqqo6b3z7bb.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76911-linux-kernel-git=dewy.ruReferences:
<pull.2412.git.git.1789829246437.gitgitgadget@gmail.com> <pull.2412.v17.git.git.1796046376.gitgitgadget@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76911-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v17 0/7] fetch: avoid fetching every branch of a new
remote in a shallow repo
Date: Thu, 03 Dec 2026 06:44:24 +0900
Organization: Usenet Network
Message-ID: <xmqqo6b3z7bb.fsf@gitster.g>
References: <pull.2412.git.git.1789829246437.gitgitgadget@gmail.com>
<pull.2412.v17.git.git.1796046376.gitgitgadget@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
logging-data="2067851"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cqM+qpAbUdToae94vg4OZGRjtzU= sha256:E2DR/JuPD5L1glKe5KjxcAdXNodsfG2Jxlkt+PEY2s8=
sha1:z/yQiXibXGq8PLRcK/B4LJzPpUA= sha256:4PaqDpG6fsMJKHvNnDvE/JuoYoCHD9z/NYbMu6/p6t0=
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 7D21B11773F; Thu, 3 Dec 2026 00:44:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.05
X-Spam-Status: No, score=-2.05 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=IVnhfzvN; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=K4bnABrJ
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 2N6ds3l1Q-Nc;
Thu, 3 Dec 2026 00:44:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-76911-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id C8F6C117707; Thu, 3 Dec 2026 00:44:30 +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 5F2D32612F; Wed, 2 Dec 2026 21:44:29 +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=1796247868;
b=E/k3JsWj6lFjY2r3wBpKcVMXhIPfNXPDvCGSfZlkB5pA4OoG9XhEmk4faP1Evw8yPJE6
5XTBEZcAEKjbd/+ioSsBgNh8uIFTFCT1Rbgx6T2sjpphsknEGOE5Ejvh8unre1y3n74pr
EVoceLNh8TagUk1JBaz+0o+DA+03oeVyfaSM3WJfoXRymGRYjgiHar/Bu8SWiCngm2RaM
1ZBmpbME53fs7ybWNw6ZxDUgiJws33BbTiQeBHMWaHsR91QeP9hdZbCtpyUu2Vj9IyKhz
aA9GqDsjSxf0Xtyahk4EsZ65EdU1wjx/xnaTsy9lp1B7rr8lUZFGD/3mgFjHom0yeEQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796247868;
h=X-Original-To:Received:DMARC-Filter:Received:Received:DKIM-Signature:
DKIM-Signature:X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:
Message-Instance:X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:
X-ME-Proxy:Feedback-ID:Received:From:To:Cc:Subject:In-Reply-To:
References:Date:Message-ID:User-Agent:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:Content-Type;
bh=K3NyO/h/JQfNaGsLD+KvuQHno5TSosqZaJU/9dNpm44=;
b=QOYCIDICRZqkMetqRrSdYthOrUTgw/Y3g9dbL40CuavoL5PM86MEXnFdfxCk4dw4aBDG
KV0OXyp5t9NnE5qergXyxldkiEqmyyU4cQon+hSKvMo08EQKKaYnFwPWlBV35uQnrUt1V
/ZeE11ePL25xFMYccOa6PgDW94zm3O0XUrn/kjQ75BsLWgdvUkaB31dpbUo0hqX8wRqza
voaHqoRgUqwceJVGAmBE0dzJcw6i6ZbimndH/7pbiAxoNVS2oUXwfDpBFqjz+bfsoLBYR
nnWXZutuWWtzKK4IlHC3+l37YXha6Jtee4uNfqNjr2XhBXBCahoHFVK9Mqti1MmsEWg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=IVnhfzvN;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=K4bnABrJ;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.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 BDD87606A333;
Wed, 2 Dec 2026 21:44:28 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=IVnhfzvN;
dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=K4bnABrJ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.145
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796247867;
b=SVKowG/7voLqnXH60Pp8ttx/TSRvc1nBeRxzY3ALbLifp4lfjwkXyXqXdWP9bn0rUH9Q
HIdr/tDV9rR9JdxTtipP0t/sSLsvYTQxHqcZjhSE8xfni/H45RflVDKRUlr7YfRwLn7YC
ZtoeD5hJm2BrDC5BAwto7pt8dpheeVTJk0j6mtwA4ZV6NAEDi5lqa6rbzstOQKVP/cCq+
4otRapVXPQd3hA3beGFP5JiD66Ene8hIDPpmpBMIATJhtTC0xrggirvk3knsjaH/HZ8OR
Mr9dheOc1puEhFepk0yfwy2vE4ygIRl3TQbe7PvPdhtL0Dg2Roco0mE82JRHt8mVsJA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796247867;
h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature:
X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance:
X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID:
Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
User-Agent:MIME-Version:Content-Type;
bh=K3NyO/h/JQfNaGsLD+KvuQHno5TSosqZaJU/9dNpm44=;
b=0TIF9ji+4YCZLaaPVyh/Sxbsh77mremJnXXWAo4JI+/gNuMXYzRf+zvHJHMabBS5D+VE
WBc451VZpyByzMkBV15ropDyFxQ2ad/4Nn22PgZvFAR8NRNQxzFYL1C1AyYNr0hrYouhc
f1XlmhtLs6FuUf67tNrrnUP+SDz6JZXG7ZsUiVeK3Dsvzspwuk7AGiBb6D4jHKgiEFBGT
x3w0uG0Pz/+q6yoBYmoEqpPoWiBdsIOfn8daQ4k33NeP/99jiN8+A85wwgJimkfJSarlt
CVfz8mFu2m/hVWTt/ibgSsq3Nn3/cL2fBqeJu6zHwFfkWxG1sbmxjaJMKJpzfHUGQNQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=pobox.com;
spf=pass smtp.mailfrom=pobox.com;
dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=IVnhfzvN;
dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=K4bnABrJ;
arc=none smtp.remote-ip=202.12.124.145
X-Received: from fout-b2-smtp.messagingengine.com (fout-b2-smtp.messagingengine.com [202.12.124.145])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8661E606A322
for <git@vger.kernel.org>; Wed, 2 Dec 2026 21:44:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8661E606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
by mailfout.stl.internal (Postfix) with ESMTP id D3E8F1D0020C
for <git@vger.kernel.org>; Wed, 2 Dec 2026 16:44:26 -0500 (EST)
X-Received: from phl-frontend-02 ([10.202.2.161])
by phl-compute-03.internal (MEProxy); Wed, 02 Dec 2026 16:44:26 -0500
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm2; t=1796247866; x=1796334266; bh=K3NyO/h/JQ
fNaGsLD+KvuQHno5TSosqZaJU/9dNpm44=; b=IVnhfzvNTTNG0JqwInNApLytL1
/7L7jZCDfUq8VrTpaxH1I14uG7J9ZfSohc0ooSlWBrIZccYxLOd2T0IZjJD5go77
WRk+KXiE66M6PHtd4nYU4Waud0TGgj2PDrdYHUgFt3ER8+vMHnq21jtEwZu4U3jB
a5FQcCAVsO1pC2Ul9JVMYuDfw13qjy53occc3keDgewMz64Dv3lxy2wZf+vS63ac
YyhMNqUZx5U7bmSOYokNk/wmIenNnaMnTHr0YIC3Mpn4ts4fheARoEN9292o6bc7
kCLwJfdod0fJhQvT0WVPITFuc4kfH8JQl5eGF1GRVrMvQ0FtX1nb0/ik88Xw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
1796247866; x=1796334266; bh=K3NyO/h/JQfNaGsLD+KvuQHno5TSosqZaJU
/9dNpm44=; b=K4bnABrJPiaj2DPQAKXoHrBSbXXjk8XyNrBCbE9bttPZ02TRAh+
mQOjta0oUDRbhpIvTbtb1o6qVz6P4LtPB8W7I9c7V4l9XC3eK8j+y8ygkNf/LBhQ
wiSg9kDNnVKbLXi0V3SMYg1oGimeH/3JWY7WUkNSYaR+arp2iLKEVTB/hVoABs9y
FCkNpz0tlSVNO9bTbffqyVaA167XfLCXFBKUVknK0eDovz3Hv/ntcIiD01wjKapr
PEUD2HjcON1aYWa8fcZbggSv0ORrFk1NzuXYsOmgtYD4M+ru6Bh+sg5dl8puR0WE
CbPbKXUsg9cJPZrdeHCRpPEYZx8EKiCrRig==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1796247866; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm2:rsa-sha256:I1z/5NSfkLDIYTLLhmivPnasW1pZ5+JQce7K7cvWZeHBWNo
QKUhRlMfYMO7i0iE+LpMpBke2L5aSraE2jZ2aKPhtUFsuGE4f5HAtyeRyqbGR5cu
PZX7KFCn67TXso1z9mI4dLHZoYq2lZ/p/xCxDD9q87qBFsfkFH1w1S7lJaOVGxV9
p7nVeH2bogxZCfHCRQXorVGtmnN8vll2+CMqz/8Mz7vjm5RCCT9TLfbkUK/LsYWU
9MazESf7AxhYIvH7APIcANO5nBmXYVW3CLolrzr7XK+fhuWR1p6CM3Ytx6jWBSE1
q76DBxtAVxgFnzqnXtH1aXifTMlXaQ1Xq7Q6Amg==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09;
repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:e75DUIY0gS94/U9IOfSl+bFZfUjGUeA8m7uVdOe1TsY=:ExBPjgQhKl9JP/q/HS8uhOe/VBorzpHQBJD45XMyAtg=;
X-ME-Sender: <xms:OpEQa7Pa5hUFS4E_O4hPe9kXMqbQNGPiGucUVU9CaARDUqQoQx5kCw>
<xme:OpEQa1DrNCFLB5TrqjWTJ4DtMdHRyeRZQXSkA5AL9FaVbllXGjCzs0navxEGexbj2
3LyePctdQEaj9vv5WN9IQvTu2IMPV1eI8ml9Vfjh_woNoQA2Zeqag>
X-ME-Received: <xmr:OpEQawfPPpAxFt1DWvV6HFxDslehh7Q9aHn7pg-BqkPzz4tRPLFnR82bd9KKJjDbrgQWOPy1HW8bJXzvM4U7M4fjjAMPxtfzkw>
X-ME-Proxy-Cause: dmFkZTEJRD+UZAuZgxTatApqulT5bLAQgR3V9AAPkxxHPspUrp34iEZLubl68GJY6+m7zB
7fATmkB1KpyGF8ToUIFXPqnPjlPq+f70UO+YvOtIuPDMnF7OwE4lXGKOnCY+fWRefg/n+D
FikJXmADjrPZ7PVgHRB9fa3AesVZs25J+5sELtjqy+n9+xsMn5WKduH+uRfog1oe+Kn1KH
T7B4gyN9OxTxmXJOh6CGCRfu5uYc6Qd5WrTQGe+wP0IA/ltMbK7jRy6QNmBt4L+w+b1gQ7
7q2nfo8o3z31fzIF2S1wD3K86edCe6/u1JWMxdtIitdDeXiZjrdVuTwFN4nPkdiZqEqxKN
B4/nNpEMqXQhAmf54IJ3MUfxmWHD1dbNm7O29F6zI4AOEliNwTD564EXSMHPrYsKp2qPQ5
UpCyM+TcHcr9dbv4qgoWMgc7cTT3/lEQgQGp33W/1g+6t/K8QiOm8w+Fq4iO/clxTvJi13
okK3qwnDjW2wSUGGKFj+0AxqnTW5uG5/PVB/HHPHTMe+FpC/fZbjUDQ2MONc9B2mP6emkZ
DqM+f7dQwkwtds/dRXonv6qbBOWVPBblKV1AVnQ/Apakm7wFvIFZuRfvOjYpU85PyJdFDt
VUqT25MUiNQl3ydH3TCpLUwEnvQiPUEnKPkyp3IhGEWo9lptAl9ZOI5+QJFg
X-ME-Proxy: <xmx:OpEQa8ONGzrv8nL9FBUinwQwpLto8a-rmuMPbefSP07HlXV4P-yBFw>
<xmx:OpEQa4IcG3HbueclSs3VS2gyeF5fb-bn1cvGiqVhhvYvC9Q1kqVZvA>
<xmx:OpEQa0Ltt2g9EA6OgnLcjVjlyGPnZN6tud2Ghako7u-ofCud7zecyw>
<xmx:OpEQa66hFE2mKAHfgXqhui2SEQ5J6T7Hc0jZtc0BfBiAzPhwqVB-Nw>
<xmx:OpEQa97vxhbT-DfIeBquJuoeBWy0bP7eL_S0fYLwyOSnPqVe3dQ8X2i9>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
2 Dec 2026 16:44:25 -0500 (EST)
X-Cc: git@vger.kernel.org, Phillip Wood <phillip.wood123@gmail.com>, "D. Ben
Knoble" <ben.knoble@gmail.com>, Matt Hunter <m@lfurio.us>, Kristoffer
Haugsbakk <kristofferhaugsbakk@fastmail.com>, Harald Nordgren
<haraldnordgren@gmail.com>
X-In-Reply-To: <pull.2412.v17.git.git.1796046376.gitgitgadget@gmail.com> (Harald
Nordgren via GitGitGadget's message of "Mon, 30 Nov 2026 13:46:09
+0000")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
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