🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1942

[PATCH 4/4] unpack-trees: hide verify_uptodate()

#1942
From: Junio C Hamano
Date: Fri, 30 Oct 2026 17:39
47 lines
14021 bytes
64b1abe962 (merge-recursive: fix overwriting dirty files involved in
renames, 2018-04-19) made this function available to external callers.

With the removal of the "recursive" strategy in ad45b327c0
(merge-recursive.[ch]: thoroughly debug these, 2025-04-08), the last
external caller of this function want away.

Make it file-scope static again.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 unpack-trees.c | 4 ++--
 unpack-trees.h | 3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/unpack-trees.c b/unpack-trees.c
index 1802809ad3..3298773490 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -2269,8 +2269,8 @@ static int verify_uptodate_1(const struct cache_entry *ce,
 	return add_rejected_path(o, error_type, ce->name);
 }
 
-int verify_uptodate(const struct cache_entry *ce,
-		    struct unpack_trees_options *o)
+static int verify_uptodate(const struct cache_entry *ce,
+			   struct unpack_trees_options *o)
 {
 	if (!o->skip_sparse_checkout &&
 	    (ce->ce_flags & CE_SKIP_WORKTREE) &&
diff --git a/unpack-trees.h b/unpack-trees.h
index 5867e26e17..638a6b076d 100644
--- a/unpack-trees.h
+++ b/unpack-trees.h
@@ -123,9 +123,6 @@ enum update_sparsity_result {
 enum update_sparsity_result update_sparsity(struct unpack_trees_options *options,
 					    struct pattern_list *pl);
 
-int verify_uptodate(const struct cache_entry *ce,
-		    struct unpack_trees_options *o);
-
 int threeway_merge(const struct cache_entry * const *stages,
 		   struct unpack_trees_options *o);
 int twoway_merge(const struct cache_entry * const *src,
-- 
2.56.0-486-gd49ba3b80a
Technical Details
Message-ID: <20261030173956.585250-5-gitster@pobox.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73933-linux-kernel-git=dewy.ru
References: <20261030173956.585250-1-gitster@pobox.com>

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-73933-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: [PATCH 4/4] unpack-trees: hide verify_uptodate()
Date: Fri, 30 Oct 2026 10:39:56 -0700
Organization: Usenet Network
Message-ID: <20261030173956.585250-5-gitster@pobox.com>
References: <20261030173956.585250-1-gitster@pobox.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2286103"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:QPh7PuI9RfKnKYtDVytFwjr+NoQ= sha256:ucP/kY4mQhNHApk+rOWTxSm3cNQBNEf8UFZOBJCx5yw=
	sha1:0dh75/+4vo4GoYo51zLfy3TOEy8= sha256:KSnMoBQUf8wbpQtkTUy0QMlLK3hidu4iSK74LQHBs2c=
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 C57AA125CA5; Fri, 30 Oct 2026 20:41:50 +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,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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=gyRvie8i; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=KhGRZ7Be
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 3fTFTJMWeV_b;
	Fri, 30 Oct 2026 20:41:47 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-73933-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 99ACE125CA3; Fri, 30 Oct 2026 20:41:33 +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 A1E1627BED; Fri, 30 Oct 2026 17:40:10 +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=1793382008;
	b=BAu0p0vLW2IABmXMnEXGx6RE6v3oN+c3YZtgK1JYn4l4n4L5W7TEOa+2ARMeMfxK/7x7
	 1J4W90wwubT8F8VFDVkzzHPHvE3QHPs9xAEaHkyfep3NZDhuCabBa+q8vOCe9SnX0HE5r
	 UlgpVl2RYG0SqmrE3dCTiUUDzkGSAxjDxs2+G+r8f4Xkbjbxw44/b/IEXMUrSQBhE7yk4
	 sxiDauxCJijmf+ZS4sfXlHIPXG79IR22rOEG+4rEdk1q+/gAvvn80pqCGdYop/F2fqxgF
	 jOSvNEIM86Mdv6teahRbsRr382JBhcQJUywnGM1YyK/7zPFlHvjzAhopj6T1cLTfhjw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793382008;
	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:Subject:Date:Message-ID:
	 X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Transfer-Encoding;
	bh=piqguQnhqo2IH+IJil7lIZaZ2uTIDuKntqodCoVcGZA=;
	b=s2EctY5am5xvuOdddxmXH+dsXdnKpMc98VFfm9pgjXE9QlWTSbRzRbYS0JSZCMOgkX3Z
	 REv9onHYZuj278v+NsDGbeNLH+wA+mM7Lw21HnvBmR6Ww8+kAwv5BErancvY4DAfz5aUo
	 86izSfQl8f9nIFigYAUKLJrSARNHw6JIq8tiyD6HV9QkR9vTa7q6+mWt9Wwu70IhxTt+6
	 S3jvLiVA9Qd3iliNjMgoQPDjts/QZ6+miXoAqosoD5lUkVxnG4rvdHm9jzu5lMYZ36cYc
	 SAVTthZKgEnMwqYLSRRNs7Pz52eslhnhzvXyTZN6oTTRql59i9b3lCNigs5cVsg7T6Q==
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=fm1 header.b=gyRvie8i;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=KhGRZ7Be;
	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 AEBAB606A325;
	Fri, 30 Oct 2026 17:40:08 +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=fm1 header.b=gyRvie8i;
	dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=KhGRZ7Be
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.154
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793382007;
	b=lz0RnHEAulgb1DIjiouQjemgZBRf144AOfZ0N7nIRj0Fy4C0/Num30Lap41pcyqFQcsi
	 W0iynV/B2Ojc/izMagmN3QcDab4O7iqE2fcv77r7ipi3DJIoA8ohcJ3K0bz16vmDicClr
	 G1M+Tr2MzA8yjgaci0fsdWymsmjHo11TnCEaR5onNoi4rcdOQmgTawauTzN3rvax9HgOA
	 S3IRSsURR3XViHyDGfxw9z/iz8mjWT2B8F0nTXVDgR12sGhidoBPvvBcZW7/EDCOLhH2o
	 lau3k78CR7FdjiEDNwm97m2REF8b+rKtqZJCPtcuM1ASy54chW1+baMbLw9T7WrsSyA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793382007;
	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:Subject:Date:Message-ID:X-Mailer:In-Reply-To:
	 References:MIME-Version:Content-Transfer-Encoding;
	bh=piqguQnhqo2IH+IJil7lIZaZ2uTIDuKntqodCoVcGZA=;
	b=PHxRQwl5phs719tbeMUp1Kgiy5ieNMdUCmult4AW5mipbrEdwVMqXjhvUuipBaWAne23
	 hJfLSf7H8OB4qNlfxUCzF5ZV+7tgTul19BRGT69D1XEddrHylFAezak6NBaux+bMhsHxU
	 k+c/FMm+iDeydR/6aoKnhGiarscDktt5a92fbjDlZVGh+JgBfCWxBuRij/k2NE+3jT7yO
	 noMfP2CTFUgQMe2/IeNmkH2jyO5W3K25PPli0a3T8u67nAAoUVc0S+PeBnayXf95HwdgJ
	 Bj6CoRhiUo76FECK7kJs8CLnsOPS5B7qTWqGggS7XFCkLGJtNIQNDLiYUC25uwwtnlQ==
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=fm1 header.b=gyRvie8i;
	dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=KhGRZ7Be;
	arc=none smtp.remote-ip=202.12.124.154
X-Received: from fhigh-b3-smtp.messagingengine.com (fhigh-b3-smtp.messagingengine.com [202.12.124.154])
	(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 767DD606A327
	for <git@vger.kernel.org>; Fri, 30 Oct 2026 17:40:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 767DD606A327
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-11.internal (phl-compute-11.internal [10.202.2.51])
	by mailfhigh.stl.internal (Postfix) with ESMTP id C3C197A0120
	for <git@vger.kernel.org>; Fri, 30 Oct 2026 13:40:06 -0400 (EDT)
X-Received: from phl-frontend-02 ([10.202.2.161])
  by phl-compute-11.internal (MEProxy); Fri, 30 Oct 2026 13:40:06 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
	:content-transfer-encoding:content-type:date:date:from:from
	:in-reply-to:in-reply-to:message-id:mime-version:references
	:reply-to:subject:subject:to:to; s=fm1; t=1793382006; x=
	1793468406; bh=piqguQnhqo2IH+IJil7lIZaZ2uTIDuKntqodCoVcGZA=; b=g
	yRvie8iSqihbFHAtqvoxOQg6ywtMbEJtTBdFJ3b/6BsAprm3LxhqWZT8Iz4WXKC5
	TLHaDCe2ywKv+tcCBeShTWFMldBjLCamoLY48cNiTx/XTPLjWzjw4/JeWFumprqO
	Y+ecRMg7N854LhCohyjECVrYM21H4RDGq8lBXlXQ8aZ9vgpZWkCvXz12FfkJFBBy
	Q8xKboIi5QrchNP6MUcqRQKmXxQJkMMO75l8p0OkZsK/2ExIqwd0qNzwdRshUm/l
	PsKeKoTyz4Q+I+FlHfm2qk52IhRJcxps48yjveYz5k3inEtZvmh3GoZqLBsfoqKb
	QyvEoIPb0vtXtPITFK9Zw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc:content-transfer-encoding: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=
	fm2; t=1793382006; x=1793468406; bh=piqguQnhqo2IH+IJil7lIZaZ2uTI
	DuKntqodCoVcGZA=; b=KhGRZ7Berc/kmx972d/J6rxzGGaj2TdgJLjp/CUQ2qtf
	zsMeMTtrDPiyG2DV9sUFv2TSxdFKqgGhqDcSzpHd1wcTn4mOzi26zTNXWX7ghyMv
	t5mRAMbkvAetTFYh/ScyUG+qkcIOdai+JbHFkDs2NQzTTxyuiAmnectwXKAsfgNW
	lcW6HaOKQ+fo5L2yqpk4fH4pqZEHHkCg0C4wFrjBAORexg44iHfHXRfvirfHwGlV
	BqdmwfcFjKSH9xZSzSujrkmpsBWYkpM+4gZLhNZuTMWZX5pc21Q++z3wrgpN6DgO
	LHIjBffbI/NjqoOfIEBcaMcUYRUdJUj4QN1yoCLGvw==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
	repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
	action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1793382006; d=pobox.com;
	mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm1:rsa-sha256:M+vVy4NZ/CF8PK+73eQYaFgKZyqpgOhj9cY7gOUdh7mZ906
	R1y0b4IKCsputUo65tJIFXD4q44+qQGQ/heTf+TYZk0d1DV/f8EqOHV3p8gBYdhO
	eTL4M1vbKUjanqPKOgvqti/RFb8vPTG+Ba/+Bn0aZIaD5oeV5viRiusg+TdHUHX/
	10pPZDsmxUfL6g5luME7JM4KoK+Mwkv3YsjlXZhN1tZTb/5GFyxUnHqE/T1NzFSZ
	0Kzk404pXqsUcwuXiOJ8Ujb3RVpQeVyVcY26Wqyg4UuO4vdwOAwWmOhmGal3xd0v
	Fb+tJoxBmAzMgT1Ts5TmUD04dljJ7xHfEB4OiyA==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08;
	repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox;
	action=mi-m=1; hc=10;
	hn=content-transfer-encoding,date,feedback-id,from,in-reply-to,
	message-id,mime-version,references,subject,to;
X-Message-Instance: m=1; h=sha256:9byA3eUdm1xrIYxdnX9/IBSQ0wOS/QDOp62CNLjmhyI=:xf3RFkaZhMtysvxixf+bacxKUD0y/2Vb8l619+XU8fw=;
X-ME-Sender: <xms:dtbkaiUwu_Nyy3C7D7VnxgJlX33zHUnV3sSy3d_A3RzDFAS40HHeqA>
    <xme:dtbkakldpETBuB9v-AdjGAOLwIjHAdsn-_MSAdsTON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UjZoZ37HAc6qReDg4lW521Sy-CGs4RYKFA7vA>
    <xmx:dtbkam3ac9kOOMdNr4s70zaRRYKEmre1IGDhaxHSAmim1LMea0MMuw>
    <xmx:dtbkats0rNvvtNBy0-22eYtCmhg8B1X7MTLQepF0hCrTpYuKwbX-X482>
X-Feedback-ID: if26b431b:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 30 Oct 2026 13:40:06 -0400 (EDT)
X-Mailer: git-send-email 2.56.0-486-gd49ba3b80a
X-In-Reply-To: <20261030173956.585250-1-gitster@pobox.com>
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