🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #199

[PATCH v3 0/1] repo: add revision filtering options to "repo structure"

#199
From: "Mark C. Chu-Carroll"
Date: Fri, 09 Oct 2026 18:09
31 lines
10910 bytes
"git repo structure" provides a collection of useful information
about the information stored in a repo. In particular, it's
valuable for diagnosing performance issues caused by large objects
stored in a repo.

The current implementation of "git repo stucture" provides summary
information about everything in the repository - all of the
branches, remotes, tags, stashes, and notes. But sometimes
to properly diagnose a problem, it's useful to be able to get
information about the specific part of the repo that's exhibiting
a problem.

Add the option to specify a set of revs. If revs are included,
then the set of objects processed will be limited based on the
rev specification; otherwise, all objects will be processed.

Mark C. Chu-Carroll (1):
  repo: add revision filtering options to "repo structure"

 Documentation/git-repo.adoc     |  37 +++++-
 Documentation/git-rev-list.adoc |   2 +-
 Documentation/revisions.adoc    |   2 +-
 builtin/repo.c                  |  32 +++--
 revision.c                      |   2 +-
 revision.h                      |   2 +-
 t/t1901-repo-structure.sh       | 211 ++++++++++++++++++++++++--------
 7 files changed, 217 insertions(+), 71 deletions(-)

-- 
2.53.0
Technical Details
Message-ID: <20261009180951.1628134-1-markchucarroll@fastmail.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-71613-linux-kernel-git=dewy.ru
References: <20260924164503.119506-2-markchucarroll@fastmail.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-71613-linux-kernel-git=dewy.ru
From: markchucarroll@fastmail.com ("Mark C. Chu-Carroll")
Newsgroups: linux.kernel.git
Subject: [PATCH v3 0/1] repo: add revision filtering options to "repo structure"
Date: Fri,  9 Oct 2026 14:09:50 -0400
Organization: Usenet Network
Message-ID: <20261009180951.1628134-1-markchucarroll@fastmail.com>
References: <20260924164503.119506-2-markchucarroll@fastmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1168035"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:pSwgKCDvgfu5+MDcMAwQ1EpXszc= sha256:AXu7o5Ub4L8qfX7cnQYGRzRDqaO4+4nXOwgLFZCVOiQ=
	sha1:q5XXb10HwBSG4tDesLjZqtzwceI= sha256:OxN4Q0lxPXXvC7wrvwcE28YvApeROtLTjo94eOeocoM=
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 91D5110F777; Fri,  9 Oct 2026 21:28:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: 0.351
X-Spam-Status: No, score=0.351 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=no autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=fastmail.com header.b=Q68caRw/; dkim=pass (2048-bit key)
	header.d=messagingengine.com header.b=HgcxI0cT
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 gPAAtuN41iya;
	Fri,  9 Oct 2026 21:28:40 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-71613-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=fastmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id B535410F768; Fri,  9 Oct 2026 21:28:31 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 369E0A0C01; Fri,  9 Oct 2026 18:14:26 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 4591F4F7CDC;
	Fri,  9 Oct 2026 18:10:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=fastmail.com header.i=@fastmail.com header.b="Q68caRw/";
	dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="HgcxI0cT"
X-Received: from flow-b1-smtp.messagingengine.com (flow-b1-smtp.messagingengine.com [202.12.124.136])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D81F24F7982
	for <git@vger.kernel.org>; Fri,  9 Oct 2026 18:10:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.136
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791569411; cv=none; b=hRvBtsmLvIDROkguhp3tw5kjuaZvgGsC3G+cUQyiWubktGEU9wcBt6wDI4R1rFw1hvivcGQEB1VDrUR420tXrauE2Pd4mF3JrYZ6xxCjXGjDPsuEdCa43sd/RTZAIOuK/MCtgaZBOdviVQSFO3D51mJ3GSrv5/EgpS87mnolao4=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791569411; c=relaxed/simple;
	bh=zJkAGRlWsiqyNtDrlYP8gH7u8QVnkUgl/4GlUnzagmc=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=KaQ2tyHVB8ol/JwaDevZd+Iu19/nSneD9g5RkISkb6sIhFljusEgrrKy8Buc4CK30LSMYD0iUiUNcvEeD4lZc8XOcnWuoF2fi8qLbiht7BhKew/52o3gsXIPvmMWefusg48Lq5ttr5qZgkQR1UZ0hEJEA03nTelyZ72CxViHLZU=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fastmail.com; spf=pass smtp.mailfrom=fastmail.com; dkim=pass (2048-bit key) header.d=fastmail.com header.i=@fastmail.com header.b=Q68caRw/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=HgcxI0cT; arc=none smtp.client-ip=202.12.124.136
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fastmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastmail.com
X-Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45])
	by mailflow.stl.internal (Postfix) with ESMTP id 04B531300F27
	for <git@vger.kernel.org>; Fri,  9 Oct 2026 14:10:08 -0400 (EDT)
X-Received: from phl-frontend-03 ([10.202.2.162])
  by phl-compute-05.internal (MEProxy); Fri, 09 Oct 2026 14:10:09 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
	cc: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=fm2; t=1791569408; x=
	1791573008; bh=SgpgLpjEbit3sBRnC6QTnGNVpZTkLSojEp/9lBHDQoY=; b=Q
	68caRw/6K7wdtUnVZF1PKerPOKzEbX8EAVJyzmBH9E03wuB7AYfQxSiV7kXBaS7H
	uwlt0amHxC+g9vbueVZ3Qkl6a8dDh0/8ArgETMY/GWpS07DZBC4ShAvqdeYYiP/q
	jA9lMliqCXm+nCoTKbGXmM2wqZ5Pvv2PWJwvNgLxxX5/9Fr1fD/d9R40P+HzASjb
	9U/hI+bEYSc7dBktE8aVtjqq+9uLflMH6gNQUS7jAft+XmH8y814yYNoQRQVEWcL
	nDcUWjdpq61capaaysjOR/ezQS/9i3vRXhsN9MK/a0fwfp2gxWGMe4Cmn55S+ev+
	yKn/X7DctlfN9WH+JEMlw==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
	messagingengine.com; h=cc: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=1791569408; x=1791573008; bh=S
	gpgLpjEbit3sBRnC6QTnGNVpZTkLSojEp/9lBHDQoY=; b=HgcxI0cTC5fnqoNJ3
	FayUkwVY+QKX+zO49FIpRFa89pe6+JNC8a0f9k7JVsckLvf9fJnOJeMWXFrs91pX
	Cl10D7r7mXgZi7iOCDQ9o76ZdQ4HSXKQ+SS/W3seCsslIjosf0XN6UcjQ7yuSrBg
	UTYPkZdz9KgHmrx7Gvg/pKneZtfJNuIsevykWuymyFtHmqtLbXxsWFffp0TA6pGd
	fwGYXyfBhq3tLKieKmR9y2urKIi51Do4B3tsyTP0SeDh/M3+q8GyvKEPdgoHB7KZ
	xUiPR4c3/McIWWYC+xSMWBs7KDf9FmsWb93tb4D0bWWZ2vK4D/R7kKFtgR6Eq+Bx
	mLGog==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=sign d=fastmail.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1791569408; d=fastmail.com;
	mf=PG1hcmtjaHVjYXJyb2xsQGZhc3RtYWlsLmNvbT4=;
	rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
	s=fm2:rsa-sha256:l3r1dmGerOVjC2wi+BGNikOCzWqOwp4S4hd2asCCh554jNb
	rpAJcVcodaxzoLbVl17ZbGG+meT18knl9RSojA27aVsXw1PDAs7WczP3y06R4Jtg
	YgYQH4JH4jGjuLyXGQFQYOlDxjTSBjXkyzrGzbSk1nrd7zEYoPICJCgIWa+YiXnk
	dNihL6KxZsyyE6wFXomVrBMoDdxVS+NKuenZZJ01KXPdUB+ce+npNomjEzj1DJqa
	xqGv6pGAUxanhEuwRnRN+wkwRzx6NF/waiwqoADlPRF6Mx22gHFXoD2K8CTqoxfM
	3nnAsRbYI39psBDCOtW4yEzC0qLlMU9jNu3+z2Q==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
	repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
	action=mi-m=1; hc=11;
	hn=cc,content-transfer-encoding,date,feedback-id,from,
	in-reply-to,message-id,mime-version,references,subject,to;
X-Message-Instance: m=1; h=sha256:9TBhEMKKtDwn2PiYjfz4qmZ0jVya8x1/n8BeEASMKAk=:zJkAGRlWsiqyNtDrlYP8gH7u8QVnkUgl/4GlUnzagmc=;
X-ME-Sender: <xms:AC7Jao7XQPtMCqSMo1FQ8HCt0He049ctbVUCVKn6_1dFmO2y7ycbnw>
    <xme:AC7Jag4cXHoqIgXGFmUCuB9B2w8_I5BiYCsDlDM8MZ-m1kbpexMDaTcHmbveVFLYk
    UdeDVDWW261ul4h838QEtHlPIbOOwESputtwzwLqd-QJTUpUBpNpkQ>
X-ME-Received: <xmr:AC7JaseTPkkruNlEuY0vT0QXGwpWG1B9cBIx_ushJ4l-_t0VM4XIsju4VjJjz-TPGZGOtWal_myrUE1eTnlq_3PWmb2fHYxAEkqtXykagxhQT42wIPipxZCuWntp9U8z3VAt5nYbqXk_ZnlXBuEi>
X-ME-Proxy-Cause: dmFkZTGvrWrBqoNo/SGmDMChYQVxAQK1vuW2zvi/SyW6vEyDefe0kXikfbNtQSiyJre3Vs
    Pak99tUzUmRHJljeBr6NGr/dYaq5PcxPUzapGW8wOcXRqM0VS/gpDF3W03XiqGpmAfbgmn
    Y3D/xKgdACj3+ZVIjDdmM8e+sEitBsye1tUJ8vvqTUay/S+y5lex6nC/LurPbySnqtU1P/
    zsRvkXqI1QfYLKJDDnAcu28beqETaje9kmBJnijlK6rX5oRyjbhSm/94KE0opPRNTU2NnR
    TyBxu7Kq36pFVOzB/E6J9fKOuktElS284kj4fTWjKMhxPQ8maqad2lVRlDiFRaMwlav5o6
    cuOjLRoivhhvOM8uDq0aBABOTZHmamMCJlEeZVxBFvmnmyo/8v2uV4geRmLaoO2N5imsPy
    b/ZND+4D1bhmG61fGwVDGNlw5x89bif5NBn49CX+bqbu0bzZ1kW0IaMEFOE8LeJRkBVyrz
    +uicgI44nRQJf1gGaQqlG5yFlrgmUZqq99rgq7yekmS4Od3bvb3UTuIJRETqMlKeedw7hg
    f9rYq9OMukiqB2vX9VV2W6QUjjYM7bnq7LOYH4vJi8bYCcJmjhx5PjgW9ItlDEjxVvvQ77
    Z9WDMtElK/e7Xdz6FmJGlh9rm618tVgggvVCeRCQaayZGPVh3u0CvotcqG3g
X-ME-Proxy: <xmx:AC7JasDD_Q68hc_rUpgWLFd4HC8ohpgdqEn_ih01GhlWftig9C3Stg>
    <xmx:AC7Jan8OLAKEHIoDhX8RKhn1qz7zB5_Nc69Y-RmOkFJtTVVMpi_gRA>
    <xmx:AC7JavKTck9QessnsLYfk2ZmS-9GX2UTvZXTg5cUlz_KUnUqD5OO3w>
    <xmx:AC7Jaoh9t4vThsfTPoXYSl4-oRtGlDp5zPqvR5xR81Lagr-KPNNEuQ>
    <xmx:AC7JavTH2ZcZYlUg9kwRPAdu7LaeOk2LA59qixKQtv78mkS5JKaO20xy>
X-Feedback-ID: id2564aa6:Fastmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 9 Oct 2026 14:10:08 -0400 (EDT)
X-Cc: jltobler@gmail.com,
	ps@pks.im,
	"Mark C. Chu-Carroll" <markchucarroll@fastmail.com>
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <20260924164503.119506-2-markchucarroll@fastmail.com>
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>