Article View: linux.kernel.git
Article #2890Re: [PATCH 0/3] Make orphaned commit checks configurable
From: Derrick Stolee
Date: Tue, 10 Nov 2026 20:57
Date: Tue, 10 Nov 2026 20:57
50 lines
13474 bytes
13474 bytes
On 11/10/2026 2:11 PM, Wyatt Holden via GitGitGadget wrote: > Hi there - my name's Wyatt Holden and I'm a Software Engineer at Microsoft > :) I've been working with Derrick Stolee over the past few weeks on > optimizing git in the Office mono-repo. We found some issues around slow > checkouts on mono-repos in an automated environment: Welcome, Wyatt! (I was prepared for your series.) > When leaving a detached HEAD, git checkout and git switch > call orphaned_commit_warning() to warn about commits that are not reachable > from any existing ref or the destination HEAD. This requires enumerating > refs and walking commit history, which can be expensive in large > repositories. > > In an internal mono-repo, Trace2 showed tree unpacking finishing > approximately 12 seconds into checkout, but the process continuing for > roughly another 193 seconds. A stack dump captured the main thread inside > orphaned_commit_warning(), enumerating loose refs and opening ref files. > Running checkout with --quiet, which bypasses this routine, reduced the > observed runtime to approximately 14 seconds. However, --quiet also > suppresses unrelated output. This example shows a significant pain caused by this check, but we also want to be able to see progress indicators over time in our logs, so using --quiet isn't preferred, long term. > This three-commit series adds a targeted opt-out, advertises it when the > check is slow, and enables it in Scalar: I did some pre-review with Wyatt (but found one nitpick in my on-list re-review) so I'm biased. Further bias: I recommended that he follow the model of the status.aheadBehind config [1] and advice.statusAheadBehind [2] patches as prior art. [1] https://lore.kernel.org/git/2f0f2a2df9410947b985d83a924d2549d62bb65f.1560889284.git.gitgitgadget@gmail.com/ [2] https://lore.kernel.org/git/c1056545b617b89e881f5991beb2fe0d860de740.1560889284.git.gitgitgadget@gmail.com/ And also I added status.aheadBehind to Scalar's recommended config in its very first version [3]. Wyatt has updated the Scalar config docs that justify the recommendation, which was introduced only recently [4]. [3] https://lore.kernel.org/git/4439ab4de0bc3f48a6bdcf4b5165b16fad792ebd.1638538470.git.gitgitgadget@gmail.com/ [4] https://lore.kernel.org/git/f062b0e0773b9d168c031bb1f35538665394a077.1765552528.git.gitgitgadget@gmail.com/ So I give my support publicly for Wyatt's updates. Thanks, -Stolee
Technical Details
Message-ID:
<dd253dfe-446e-4f2d-bd00-95ebc529cbc1@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75133-linux-kernel-git=dewy.ruReferences:
<pull.2264.git.1794337920.gitgitgadget@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75133-linux-kernel-git=dewy.ru
From: stolee@gmail.com (Derrick Stolee)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 0/3] Make orphaned commit checks configurable
Date: Tue, 10 Nov 2026 15:57:54 -0500
Organization: Usenet Network
Message-ID: <dd253dfe-446e-4f2d-bd00-95ebc529cbc1@gmail.com>
References: <pull.2264.git.1794337920.gitgitgadget@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="713649"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:jxlc1PwXNriyQFiJzCkrCBQSyks= sha256:yYIHryMneDGZ5aRSCosHxZ0HhxREcegewy+xEtpBaGA=
sha1:JN+ib7VZvE5LVXDgmuL3wL4plks= sha256:/uQs80Gzx13mPbxSy0y5ahw1vVKVXuRbuXG31FAbGZk=
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 2E743113D6C; Wed, 11 Nov 2026 01:09:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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.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 YmjHnzJy7gCg;
Wed, 11 Nov 2026 01:09:27 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-75133-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 90F7A113D63; Wed, 11 Nov 2026 01:09:16 +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 0FBD6126A2E; Tue, 10 Nov 2026 20:58:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
t=1794344303;
b=zBsvk8CMNAqZOvenkH5tJo4T4fwOqkH69Xlkh6adP6ABb38VzpP/VH21JPsylqb0V8c9
isdRmVYf9FD3EyaSipTjgGzpNTJDDEDEEeTqSqmdlgrVWYdZOZ2/sZvPQ2DpgPAhPMvwN
fmk/GLqx8efSr6JNm0Iotks7Ls+M2hYm6qLoLIIwGQVd7WLiKynnxh4psaTetV7d06HNx
x6Z/blSVdvDs0R0cqldaYf6vZ5+XZuvPQuJ+4UCGdVBq1pFoScMfHZJqdxTYT+gHzJhch
QX1GkUDSJn3xwGO8K1qQn13QAkH9VETbZywVuuhEDiML2JYBHc8fGqLkirvyvZsYgrw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794344303;
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:Subject:To:Cc:References:
Content-Language:From:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=tZtyQNWa+s9kOWS2kddms7TMV1OUEE/BA1VB6au7VhM=;
b=ve0+YlgO5SqArt33XVlWxwzO0/M6tJvX1PA3CblLHnC3jLraRN1mAPVdnKyGRO95/wyT
HeWBkXkgW1tY9J5nab7bVlhr8Ir4Hsp3Q3Ou9THVlaVMFsVACLaxLQ9yaHOX4uK61zU6Y
9Pb2iqDFj6UlcycG5mpGmRjDAFtkyYoQXODyCEEEJb4uDBI5oX9OARot0hZiJdwqn4zU4
jh9yqnuleVu2YAGvUrZdY4giNNQQaEXP5k6hf56j5sQ006uK++nVHK6H7sBW+FhYf5w/w
V1eJ3lXrGS4VGgUEfBXjTYKuMM/aqPXiaSfetSZiD5SfBCXrRBAD86f7FlCSc3JvFPA==
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="bPkgN2/G";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=fail 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 0AFAD606A332;
Tue, 10 Nov 2026 20:58:23 +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=bPkgN2/G
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.217.47
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794344277;
b=ktb/+gPTYJ+gEDcfwDJc81kZ4f/7pAkjDiDU3EUzDZMAOtDnDBGfvtGFvhevJihWoBvw
oCN6XEY2gXfNAXY6CS03IntWStmHtsOvPLigr/LJvkAR9WBROmPf6KyXOpjMdOFeSEOdn
jRC620CeTo38QqfbMhaqzbmThoy+1/zO1ZBO2QWZPHyjhachvXS5PAOTjbTOoSKwCikYJ
OY9ImvcI+emrt70G9jbSlVHbnuQ4gQiCqv4fY4JUqo0G2fW7Y8/NWWy+3DsbHiGKMDGWJ
mBrDRArDEseIrTzMlL7uuWYSG094uRqWqF/ASG3rImDE1HSBVpGvYgNXFB+xm/RuxiQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794344277;
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:Subject:To:Cc:References:
Content-Language:From:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=tZtyQNWa+s9kOWS2kddms7TMV1OUEE/BA1VB6au7VhM=;
b=zp/aVxdKbbLXpY+IzM4DqSEM7JwHiF8XmJEc4jEh/bGe7WlN21SN25upp6dT69cDYlKL
8zxNFLGLXSrlxfgD0At4GwNRsddwgYYWhHWJzNGz//gR9PhmaIxXGYd65/iGGza/dzpUy
2hdQpuhinigGLc+YWbYJ8POb5yHSePuVUmImXGC+RoJ9BLaO1DeFZYnDq3WOz/xBlnFI+
ngp+2jnjS7z2mhjbZhi6t/9KN7kn5YH9Qd4pPEIfdS9guiNF+KLKn4ETfJ4kiqCev7RAD
9y1jNnDCu5XceK6DYSH8MwoNOPnRMZyPd905Cp3fA3ggPh9zTKjzBsTbRHe1atEZ0KA==
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="bPkgN2/G";
arc=none smtp.remote-ip=209.85.217.47
X-Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47])
(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 CBF0B606A326
for <git@vger.kernel.org>; Tue, 10 Nov 2026 20:57:56 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CBF0B606A326
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-vs1-f47.google.com with SMTP id ada2fe7eead31-7d2e43ff4b4so1700632137.0
for <git@vger.kernel.org>; Tue, 10 Nov 2026 12:57:56 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794344276; x=1794949076; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject:user-agent:mime-version
:date:message-id:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=tZtyQNWa+s9kOWS2kddms7TMV1OUEE/BA1VB6au7VhM=;
b=bPkgN2/GQQD9khuPDr4nks1ypexO8TFguNG8s+BcMr729G59LhsIsoezDp/mK4xfgn
Bevw9D62gRFrNmq/GJw8npWMiE3y/dwq82xHs6GWkWr1uWfiYSz8OdaE2PYzDkHJQzsY
R8+dX+lzvciGuVp6skVIx4rqZ9OeZqi6V1vafmlA8SoRiq4zg1ZwdPRQUFsE064SKjSK
gKBmnbv7ey5VaOq9b7fqvA1wv0Wh4tt2lnKVB/1pweaKfPMwtq0r9L95f/DB5i5ScPVn
SeNG2XRJgzTQsgkjOgEQOL5wgtysEoRmIquCwvRDC2btASL9yG+rDMoDemAqAIwXZNol
hdqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794344276; x=1794949076;
h=content-transfer-encoding:content-type:in-reply-to:from
:content-language:references:cc:to:subject: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=tZtyQNWa+s9kOWS2kddms7TMV1OUEE/BA1VB6au7VhM=;
b=Mq0xxAZKXVb1cegqAgOidWRbRI5gceJvKWB8+GU2/hSx/Pz/NgUHJRxq4P9wu3FF73
vMG/WU/Kj9ovXG5qYUwADHgeAPBvyTFRSvbfsB1NuGe8JN/yTFWhfkXKY22nOCKvno6/
VQPQ59G+iAWYdhsuRyvVemT7sYvg917/bs1iWZPKpoasPXXwH2MaF35sEPZrVzhAIhGr
mbSDFcgv5lO6cTu5ShmwX7Znr0lG7Cg67wHCiH/mjffAly1NntJYv1Srtj1CEyI/sR/M
C5t7yjy/PiwAyZrOoV83N2/U1N+jaxinICSb2VtTLwotYY1ZCQ4BJP6lyJGrR03pPmnR
jOOw==
X-Forwarded-Encrypted: i=1; AL+hErGtJf/oseEtuOgQTemZCjwKSKGzTXC3S+6gz5aBApVXn3ZyljUUynrX5KhVTs05PQYE6RY=@vger.kernel.org
X-Gm-Message-State: APuU4Z8oKZEhKI7hSuGXUfUap75sj5amm5gfXDGMvkvPzSj35tP0zdrC
1QBKtyRPiCgOnEasXexhNcRv9HvsjDDg6XMlk5d1iKnr8slRt+GpLSHt
X-Gm-Gg: AYBFou1EM8EUDz2I/4k8pBmb7YBGLKNNqS3FDnlD7McswB1N27e9uHqNhTfCHjxaZK1
ZJ/36UCK0Y0S59LbTGtuAW2YRJadQBSdi3LCpapp8mqfS1Ist1/xXm59U0YJHLOExdVYzwOYbt5
rRVPZuokNpCPlqYnyhLiA5LvP0M0zk/GyKvM7oeYKrVeybUG2M7O5nBDc3Aqek/BVrvJEm12Ily
UqIuYBpu7kYEx4w1KZ3a0I+c0wa7ynayRGdwQb3VOTwBfghFJJfbQCG6nc0TTQXegR3L1j4tYTx
jUk1Ec8SsUEYZjlulx/qlECBTTQlNU+/zUkIcYv/UpaMkusbUsFYFNPPZpXZL35FsPQtWZEwE14
SWW10FG0ft9fD616yjI8q/GqyI1Daz1AXRY1IQlnHp8LUuVjtMGoIhHp8Cz7BfaQ/ltY63XY5Np
lIXt4R+9TxD7JR8pZnjnbAicMSfLg7g2L9mk9TMW11ggHOIS005y2kRac50CXJPJIrqODRdoxvg
6HjyZvHthWiuvewEejVnumQ5aqgh1k5q1nXtQLxkR7IZoohTteNR7cC44dng8vKs7d8+hWjfFya
g0qt2JKSkma3Ma6WrUUxaBcMOdB7fzdBCEVKs5/RGDagMoIDD55o4vWWsgT5ITa2iHkFQZPf2gw
0iiKS1Q//2RxMSvlrWvYid4YbznfPoA5xjnRVf6Dvyw+mdGvJOywgjouuAjZWJA5ptHZgzbXC00
rJ6g/ZjnXh3Lw0HKc0kOgyWMPQFvewbDziVgPR6PX2nv/d+2h/tr7fNOw=
X-Received: by 2002:a05:6102:5086:b0:7cb:bb7b:77e4 with SMTP id ada2fe7eead31-7d4fb23be1fmr42952137.3.1794344275771;
Tue, 10 Nov 2026 12:57:55 -0800 (PST)
X-Received: from [192.168.1.109] ([136.61.86.144])
by smtp.gmail.com with ESMTPSA id ada2fe7eead31-7d30209ff97sm2716739137.0.2026.11.10.12.57.54
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Tue, 10 Nov 2026 12:57:55 -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-Cc: gitster@pobox.com, wyattj.holden@gmail.com
X-In-Reply-To: <pull.2264.git.1794337920.gitgitgadget@gmail.com>