Article View: linux.kernel.git
Article #2440Re: What's cooking in git.git (Nov 2026, #02)
From: Tyler Cipriani
Date: Thu, 05 Nov 2026 18:07
Date: Thu, 05 Nov 2026 18:07
31 lines
12086 bytes
12086 bytes
On 26-11-04 17:29:11, Junio C Hamano wrote:
>* tc/push-force-if-includes-fixes (2026-10-18) 3 commits
> - push: --force-if-includes should allow fast-forward
> - push: fix --force-if-includes non-branch advice
> - push: check pushed ref for --force-if-includes
>
> The '--force-if-includes' protection for 'git push' has been updated
> to consult the reflog of the local branch being pushed, rather than
> incorrectly checking the reflog of a local branch that shares the name
> of the remote destination branch. The push advice for detached HEAD
> scenarios has also been adjusted to indicate that the remote ref
> cannot be verified locally. A regression that caused perfectly valid
> fast-forward pushes to be rejected when reflogs were expired has been
> fixed.
>
> Needs review.
> source: <20261018203255.2343005-1-tyler@tylercipriani.com>
One note nit here: --force-if-includes rejecting fast-forward is not a
regression. It's been a bug since the flag was introduced in 3b990aa645
(push: parse and set flag for "--force-if-includes", 2020-10-03).
That is, this has always been rejected:
git init --bare r.git && git clone r.git wt && cd wt
git commit --allow-empty -m A
git push origin main
git commit --allow-empty -m B
git reflog expire --expire=all main
git push --force-with-lease --force-if-includes origin main
Technical Details
Message-ID:
<auzF3FvY8ahutXw7@localhost.localdomain>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74579-linux-kernel-git=dewy.ruReferences:
<xmqqmrroxdzs.fsf@gitster.g>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-74579-linux-kernel-git=dewy.ru
From: tyler@tylercipriani.com (Tyler Cipriani)
Newsgroups: linux.kernel.git
Subject: Re: What's cooking in git.git (Nov 2026, #02)
Date: Thu, 5 Nov 2026 11:07:24 -0700
Organization: Usenet Network
Message-ID: <auzF3FvY8ahutXw7@localhost.localdomain>
References: <xmqqmrroxdzs.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Injection-Info: usenet.network;
logging-data="3697879"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nIZVF2QYCrWo+Mvl42pLXVXtx8s= sha256:blD0UdaVTC3Lj0ceYNTZ2QGTXRoJwd1Y59kEERV5m4s=
sha1:z25s1xskaCpcNu+HMrcJmE0i74c= sha256:nuDM+93ihdXgEkwOtOCLpdmYm+efTjm1RllLl2RuhoA=
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 250C5113054; Thu, 5 Nov 2026 21:09:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-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]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=tylercipriani-com.20260707.gappssmtp.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 ViU5qv5XURNy;
Thu, 5 Nov 2026 21:09:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74579-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tylercipriani.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 7D424113052; Thu, 5 Nov 2026 21:09:42 +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 CFEB22A61F; Thu, 5 Nov 2026 18:07: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=1793902049;
b=M1V7XRj2fJMiSh34x/GpFHaZQbc6bSsL5kCP7xli0jYncRR2EGfSPoIlQgnnQitJTR31
e4x9o/Tjp9xHBY5pYIji2mcroDBjgiUFFsxYSZwONQ8MaIbhLwyKcdLmY6B9/lS2xVKtA
fQcbmUZc2uvmcgovmXqIwpKV6XJlOpkCnFgdDrslicmvIwtzmcapTwvFanAp0mEQJeW5/
ZApnN6R7ZyRulqBvy/KyipBwaF1HNTtB6CmfEp1Q9mIeZGhrhnFLrCo4NUARiCMMh1HL5
dYd2+89T0eyJj3f6X7qHi5t7ASfW/U1QK3HEbVdlgNOuGYXawxxb6KMDe/N2yBUCcRw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902049;
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:X-PGP-Key;
bh=6/I33OUa1U8xDIJXKnhY8phWZhcDw98890p1Yjm2kAE=;
b=A05i6CvS6OaLSxVKMAHwqgb71w9lK4miZz4I4b9u076RI5v3mOA/Gxuuxxuf6I9DeuCS
NjKHT9L6NFB88fRYwqGW8nTm+tjJfuMLmCKZzarN/JsjZUIPj3u/fEepLlOQzePUV+0wK
82Uv/PzPhFtQEG/r6t41wIYQvfRYQtLdsgbUEc71bk6YKcGbG7AIywdG1lE8brOGcHVnj
bjhlppWiEuweqgFVsIHnb+W1l+TchfBq0wLKgCGb+fDL0rqQKZC6+CGIBKaXfAHQ8sBxn
4HqQQNVPVERurh0AvF2crxHCiARj7+mNbcU8F59rc9atXQLBtaxWvQd3Xojg1OHfBVQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=tylercipriani-com.20260707.gappssmtp.com header.i=@tylercipriani-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=TrSA4+KH;
dmarc=none header.from=tylercipriani.com;
spf=none smtp.mailfrom=tylercipriani.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 A29B4606A32F;
Thu, 5 Nov 2026 18:07:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=tylercipriani-com.20260707.gappssmtp.com header.i=@tylercipriani-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=TrSA4+KH
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.177
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793902048;
b=cQReL/SAZ7sijf9xuPkHp1VXRUmAG+S18UaysJQMkPk+c4JVKs2la7eoBOyiDFnS73B+
Hjyu4OVdBUQVjyp43OcUZnRvZS8R9zQFULRk9GIMqrDbU53e5Luo51a6NPWTyduxSrzZm
ADiCHDfraC9EtPy79avu7XzWQ7A1CgxzvUtGcO66gHHyWMJs70oHNWEQN07rkEmxt51XE
xO2wbChj2GlxFEj68od1U+EewTmCdu9Ig5ORmkGg3yOekiypDAcdtKyUJ9WnsxZEu3i5T
TeEYbB3FDF8wUzy1TBko/J9VQvsh99J0E3IHTTBGam0UKHmwK5NdR9+JainV2ZIVjJQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793902048;
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:X-PGP-Key;
bh=6/I33OUa1U8xDIJXKnhY8phWZhcDw98890p1Yjm2kAE=;
b=Cr3lRCpr8++6RsjrChBVEei88OUITVmEO2o0IJdY8+ePf8xcsVeZ9/794BUkeo8noEVX
8jV7PI2Egz4U68Rv/ak9mbHuRapMQFHhLgCsY2C5BcAv4pEGu1Vcz/RROvjIxxT9MpORS
K3aMkpBk2TAIfJ61f2l3urCqKhfYTUndHd7LwaaOPuNPJbTltlcMJVf0p5cJJ/Jbkodfi
y2Ey/kwLJWkrkriVnV4/+qyOeDV7idr6eQKNqbm1BU9uG4EpGQoGT3ULS1Du+NYXnu6WH
eyqm2ircWE04xXIThog9irZbqqRvMIM19Bi1SPik5TSKJB3wlb4TOqRrF8nMjqbo2Rw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=tylercipriani.com;
spf=none smtp.mailfrom=tylercipriani.com;
dkim=pass header.d=tylercipriani-com.20260707.gappssmtp.com header.i=@tylercipriani-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=TrSA4+KH;
arc=none smtp.remote-ip=209.85.167.177
X-Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177])
(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 EC44A606A31B
for <git@vger.kernel.org>; Thu, 5 Nov 2026 18:07:27 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC44A606A31B
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tylercipriani.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=tylercipriani.com
X-Received: by mail-oi1-f177.google.com with SMTP id 5614622812f47-4f14642adb4so1112150b6e.1
for <git@vger.kernel.org>; Thu, 05 Nov 2026 10:07:27 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=tylercipriani-com.20260707.gappssmtp.com; s=20260707; t=1793902047; x=1794506847; 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=6/I33OUa1U8xDIJXKnhY8phWZhcDw98890p1Yjm2kAE=;
b=TrSA4+KHaz7/FFw6JD7wqaxlwwR4Lz55Ht5DYlD58JM95grOiV2MVZXqw1cx24hP7J
t4aJXLS6tjJITOWwDC12e1xTnXGLsdhc2Co86nEozyhWRMFzEDmWlOaooiVmRuq+73Kw
KCmonJjYb+tYrNSeHT8Ak1NSHxqvGPrG/RNLX40arTFaFOgoMcRZjYy8BfLj9DekuKqp
Ym3lYD4GHxbbEnxx7DPqq5nQqeFh9dGyxWohCzxn6Yz1HGAhNp/Qg0lwAwd3TAMxIGKg
dIajRz9gSHRv1IZIYIsgh1FHRtZLWSAFBMb4cbapE0VXndHxDhXO3t5m6TnKxci2y+dr
rePg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793902047; x=1794506847;
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: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Dqohej+KivXvKhEj1M4fpou4PIZ6u5kSOw6F8
t63i52BM3lzhIvDiorrrBXxjLHtG9RrrjicN9HmyoSMs0VC6giK9P0JV4SVZdzCCZTvoa/eNLXi
hD4AhI6ztXA39qBFi5idJLjYdNojeg==
X-Received: by 2002:a05:6808:c2c7:b0:531:7f68:842e with SMTP id 5614622812f47-5640dbd6258mr13859496b6e.8.1793902046774;
Thu, 05 Nov 2026 10:07:26 -0800 (PST)
X-Received: from localhost ([161.97.204.248])
by smtp.gmail.com with UTF8SMTPSA id 5614622812f47-567a9f4072fsm4947248b6e.10.2026.11.05.10.07.26
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Nov 2026 10:07:26 -0800 (PST)
X-Cc: git@vger.kernel.org
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: <xmqqmrroxdzs.fsf@gitster.g>
X-PGP-Key: https://tylercipriani.com/018FAC02.asc