Article View: linux.kernel.git
Article #4317Re: [PATCH v17 0/7] fetch: avoid fetching every branch of a new remote in a shallow repo
From: Harald Nordgren
Date: Fri, 04 Dec 2026 09:45
Date: Fri, 04 Dec 2026 09:45
33 lines
13234 bytes
13234 bytes
> > 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. Ok. Harald
Technical Details
Message-ID:
<CAHwyqnWfnbnUCMTUrv7EqHHzD2PbgdzC2PQ=vcrgJkuvc-5VDQ@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76984-linux-kernel-git=dewy.ruReferences:
<pull.2412.git.git.1789829246437.gitgitgadget@gmail.com> <pull.2412.v17.git.git.1796046376.gitgitgadget@gmail.com> <xmqqo6b3z7bb.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76984-linux-kernel-git=dewy.ru
From: haraldnordgren@gmail.com (Harald Nordgren)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v17 0/7] fetch: avoid fetching every branch of a new
remote in a shallow repo
Date: Fri, 4 Dec 2026 10:45:50 +0100
Organization: Usenet Network
Message-ID: <CAHwyqnWfnbnUCMTUrv7EqHHzD2PbgdzC2PQ=vcrgJkuvc-5VDQ@mail.gmail.com>
References: <pull.2412.git.git.1789829246437.gitgitgadget@gmail.com>
<pull.2412.v17.git.git.1796046376.gitgitgadget@gmail.com> <xmqqo6b3z7bb.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: usenet.network;
logging-data="2729527"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WT5elvg6TCeYkimFp99Ke3oQOSg= sha256:Oa3wSs0PyvGnY0Okjuzswn0YFIFo013JG0WY2huYMdQ=
sha1:w8ChyPmRJgTy1q7RpLBEuQy+Y58= sha256:NGmxsxHfJ9FjLe9Bq6kq6R5biKnl6Qdxs+Vk8a9Lp1o=
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 79B19117B7C; Fri, 4 Dec 2026 12:46:45 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.197
X-Spam-Status: No, score=-2.197 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, 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.001,
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 Wyj-nlRu36X3;
Fri, 4 Dec 2026 12:46:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76984-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 BA1C3117B4D; Fri, 4 Dec 2026 12:46:33 +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 CCF872D014; Fri, 4 Dec 2026 09:46:30 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796377590;
b=00rvvOAuSKcx+Se7DQw2tEWOnc70g6Ds+jmzYB07WB+znDayYMBd8UYfdcmY4ImaWhTK
7ZtLZSQH5kosBjcGjxdhL9XMifgbKwfVwXKELMExjPUAnzUKX28VbCEeH6GwIJIcHCkAv
WjEy5+OQAy7XwCi6wdEyu6uD+WFNhZVd2EcRadGAy1dR0+3GEbZ79nz4hTl7IoD331WDQ
IQMIcH3SIox1BMoh9sC0yUYDNLZ7QRttTCH/7xAJQOSTPlivKdnTCFB5Y3wAykxLacMFc
EH3QSFcXpz60SRWnmUpxk6HImQ3vxvSIYiBBWg+17Gs2k9Bav7y3TKcOb9i1dIFYuUA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796377590;
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:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
Cc:Content-Type;
bh=XgYCeptP3+wF5jVw5yD7zmB8P9tKP+LYR8bAG3CecEs=;
b=a1aHVtkjBgEk4ckp/F/3N2j3+lm1J4gnNM0tKM3TVwKcgGeTD842vTh1IpDOawiS6pCv
cDPIYB7W22TfsU/x8HE+XEQ+i2cs2GyPkXP++21ESmPqww+glJJkQK0EVJGuhWY09LsGL
6KU3u2Qhqvk211zAqCWsI5lCXJYb16rVLILEfWgbErALBev8qz1fwVBfjAEAgHlIuhOvQ
tbDJgkkq4s9aQ0JLZT+LnvFpCgpHjTUvfe9woTTaNf2P+TujRDhDfHoa2uNPHHAgxvKb9
fxTrDNK5c0pQrak1z170hpZ9B11PRRP9SBC0uSs6lCl2SLLzjqDHrZQR43ePhnjfe+g==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=sGmULbXk;
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 3269B606A333;
Fri, 4 Dec 2026 09:46:30 +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=sGmULbXk
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.208.51
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1796377589;
b=BCWTRvQ7t5MrK3eoXlgCw/cdgOensJq4YyS2AnORjaEwiKnmPZUuGpOCPqdbmtpcDU1F
z20d/fJM6iixdGuDzg0zCfU6m9tm4ITZkEltCFn1Mqs1tHjfutPNVleYwnB27FQmiVD2b
iKF11BpOpLriMdFFox99IkF0cEnDs3gxarffUz+ffLjEn/67msv4oBdkrb+2TfrHUn55b
54vSJlyD6bzuFRy4+jBRx5Hgfg/ra4ZBILlc7u0EAnfDvnPX7VDmDG2k2YcphC7ErI2Gr
Ub28U0DeFGpast8RYMotXRcDaHMew5Usp9OQa7ieZaeo7L4OtcVJkXb/hjj+JJXegJA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796377589;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type;
bh=XgYCeptP3+wF5jVw5yD7zmB8P9tKP+LYR8bAG3CecEs=;
b=pusXo4SA7BwOwYhvwmq+hpAcXVpal9t1lU1r+gZbIe0GmbT9DFQJzbeHXTvaPs67ZexD
tz00D3PiFGBsPEyQknKystRtwpDbNZM1X0cvERh/AvK5W4U4fDFgUdPhy0T3gpstE3nE3
WhsGN1P+V9vdWwuty2R5U6rSSBflrN4daT1BgEdFfgoWBQl6HcFVBd6+IKvE4c5Sd96Xu
MEGg9QGZZpWwZbVHHXajVoAHeOxgk1vVphMRTT1kSySs1tjHZJvIFBalCshXP8B+rravL
f6BiJd2Kk21V5jesjD5EeS8U8RrMgBsT1Y4Q/OrfaLG4OaHQNyIU5cUz/uyMYKCODOw==
X-ARC-Authentication-Results: i=2; 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=sGmULbXk;
arc=pass header.oldest-pass=0 smtp.remote-ip=209.85.208.51
X-Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51])
(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 EC5D6606A322
for <git@vger.kernel.org>; Fri, 4 Dec 2026 09:46:28 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC5D6606A322
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-f51.google.com with SMTP id 4fb4d7f45d1cf-6b8786bb305so865078a12.0
for <git@vger.kernel.org>; Fri, 04 Dec 2026 01:46:28 -0800 (PST)
X-ARC-Seal: i=1; a=rsa-sha256; t=1796377587; cv=none;
d=google.com; s=arc-20260327;
b=rPrtBSFm4cudXEwdX6n6xGKjMjNUI1p/ncDJIstCgXuAvdcS9P+N+XJzIPiz4k7V4M
cfpI3qB8soHfoBZlTSd0nQyslC7jUyYL7t1BNCXgjx8sBHMVb5yq1inuepu4fxVplOy+
aZik5Y6KAL93XDPLS3HHU3Bc6A9NHBY6DtXcHwMeFYIn26AwIZ2sanjghkXx+KSBB9Bu
ArOvnr2xQXki3b6MJF59qOj+r+y2kKnNWrw6+G0FFThEXvCtSjK7oesOhZAPLcIJh3pN
H8jVF7TovBmswzViOqVR3qfIsLDLILAtyRL2yBXbH9Kh+nqnYiTLojy43S8RW1zaV22M
mBsw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:dkim-signature;
bh=XgYCeptP3+wF5jVw5yD7zmB8P9tKP+LYR8bAG3CecEs=;
fh=KXQxhx3NPwsec5gR0AowNT0QrZaf2sGQOGcH2jCxj6M=;
b=QTIqVt0GyO3tL+CYNJGjfgHumW0Ja0moTRz6NBM2mk9JolTR9wP2UPgWj8hNc1f3at
A8HAa2dKshGlYHUQ9AIeUlWF3DX7sm88+fmGUcRJ+s26yEA8DiHAVjT2w1Jl7hpQa6ZP
0m2ntEg6ev34vxDY0QzTgZiR3R/LgP1oiPfZZeqt2UYvZ9Hw37TZvE2Dzo+NkBZzFt81
oZpIvTwoHF7n+cvnbkxiE0d/cdEhqMKD5vbNJjd+K9BfxJzzQaTdFk7s9zin+GTsxYBA
UtfKm/KNSnPOIjlW51ncWWhz6YIZRrwSoFQrq/Hv4/HIBHV2OFpBi1ohujqzPNqkDWrR
tVnw==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796377587; x=1796982387; darn=vger.kernel.org;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=XgYCeptP3+wF5jVw5yD7zmB8P9tKP+LYR8bAG3CecEs=;
b=sGmULbXkjLjg2KEmkxjguxz2MWZC2D7++VuX6blfOjKaobxet7DbNveO6L2nzZupes
QIj+44yV+dOAL2wR1JPVTz3Jyp3jPpytTRRK+cjKPEcwPKpbEUxp91OtcrlFtAoFFA3H
bWmAfFKgfZCQSS+G1QeT+hV+NysEhKKLrchQv/SttBInoS5NdyMeSUUE7SsbNSW8zSM1
METZfqOXnWt5VKnQMkm2ewXhPafifGWvEKeWTh4RZejF6Eb6OxWfBtfoH2CZBFt9j4JQ
Co4CM7hvBNhvp01CWWR35hLyJ1vflByvG/pyHJwefEQBSUmizU4rJnkVvpP/KroM4BlB
JoGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796377587; x=1796982387;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=XgYCeptP3+wF5jVw5yD7zmB8P9tKP+LYR8bAG3CecEs=;
b=G3ghMwO9+YWSO3lked1Cv0IOHW80HYmQCpmLjYHjohhXo69gcfoa+s0MJZjxs1qwiX
tTILiWZp5Hz9mYexxgwMmKDKIBXJoYRyx8vPw21LTIiM1kcuMhj397EJVbRlc25RYXLZ
ekWCvTGNRxy6cpJjvBXcYNST5iTofFDHfowAfZvDwD2u9aP6IqBCIW3jhyP3Xqs+i50c
QNmbcPviJ9L5a6jdCYbMfMm5jrc/KMfEgJuGeQZBncXxa1SfN4HXJ1zR9Z2F2dSbrmww
EQCpJXhrlRn2U5nMgcbq0aA+AcsKE/Ev/PzSgIkYOIM421BJWbmUxQUyZXy5Z7MQ9ePc
+oCw==
X-Forwarded-Encrypted: i=1; AL+hErGL99rXhyeD9QwHNT4JreHfJv6lsbMK58D0PE3vST731YJzW5faMxlIoEpkAc33RetEfOQ=@vger.kernel.org
X-Gm-Message-State: APuU4Z9hk5/NB7jYYbG8+C5zdSCBayo4XcpSBm/U3TBz61QA6FJ0tWnf
YENBzvoPDdvyGGJIaIjmJIWMrSzNkTaT2y7h4DJnU6R2P1jb5H14kN3tR8XNAhbYAcDMf+ejhh9
PAksL8uewX0RuA2vnkAh9hJOj5/25hz0=
X-Gm-Gg: AZFdTZdZg5IprI0GH5XTn76QFY3Mb0CJkZNgNtL5yovjnBWt82lNgt0i7ml6WDU9HlT
SHqWHQT41ksRVUEuVw1JaAUsVc9WOB6rAWrXPf/iZR4mC9IoAE8OIU1uq8OXQXFHq9ccYp9ObJR
rzptEe1aaRj0APODbwDlPkdK/JrdonMRxtJ1On2OP2O1PFpDHGkmdoFfYfJIYHNYAGxf6zItqI6
VIBMz+5CVGpT8I0VASlGFU/B2SrJlH4SMnaD/YQe/nI6ATANVVQBAO+otFXdefF604w7lQgqz2/
qsLejMYxOzVBvc1q6oI8cMXcrLiO/IOptdNgu9Mufz0FHruJGo/vns0zBLRIrGlObOuHJjSinhO
JwoATpYZLhA1C654idnvf3TY27FlSNXoRyFYr
X-Received: by 2002:a05:6402:5111:b0:6bc:4863:570f with SMTP id
4fb4d7f45d1cf-6bcc1641c61mr1118605a12.11.1796377587187; Fri, 04 Dec 2026
01:46:27 -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-In-Reply-To: <xmqqo6b3z7bb.fsf@gitster.g>
X-Gm-Features: Aa3M54oPu3uyC9Oc9_4J_nnDKWsDIuZAfp5IwUUwQRW1nhTULBYYBmTjv4dMiqo
X-Cc: Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>, 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>