From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wfhigh7-smtp.messagingengine.com (wfhigh7-smtp.messagingengine.com [64.147.123.158]) (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 BBF6A6931A for ; Wed, 21 Feb 2024 12:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708519073; cv=none; b=Ipt+iBDyYKbcmzxz1NmpY86lrcLetF0Ek7oWcgYGz5Oo0YmBwB3buHk1tmtR9VGBkNoB3hiN9BBMiWxLx2emjbzFLTR/Kz4reoOWddNMK2mGdnZ10ugAQ6Z0WQEGHPGrTksr9OjXE/vY7PxCjEhW0BasDbESC9vsbzOFXB8URNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708519073; c=relaxed/simple; bh=HEu3JnakTwIoYlGxU7AtF8IHBfPHFpWYEgX/Q75ulT0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F8LrZnC2+b3OqgipnK8+mu/CvAXDakFKIUuXELyzvWsQnuquNtxAzA/NcC5Xccl/SkcI0yJaZSLtyr4a39XtkO7XhoucWUUQic3Kn8mkkWRsVBL2iIsb7zgrnXz6L28Y2K80LQfn7anmISHYPNAK1cf93owPAOegeSzG18ue31g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im; spf=pass smtp.mailfrom=pks.im; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b=UScGeULG; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=PjAsYayu; arc=none smtp.client-ip=64.147.123.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pks.im Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pks.im Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="UScGeULG"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="PjAsYayu" Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.west.internal (Postfix) with ESMTP id C6B5D18000C9; Wed, 21 Feb 2024 07:37:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 21 Feb 2024 07:37:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-type: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=1708519070; x=1708605470; bh=GD1apZ8BXy HhF1+gX5drklkCu1x1jt/hczpWnZYYcjI=; b=UScGeULG4i+Sz6CuT9L5roM/yn LZuMtSUSg69+SGDgcS6hh5XD4lYyUha0iYzClfI92/MQb+ZVAWOucGcRsXrBxy3W umAAzXR6AEEqpTIuW6R3r2zPWTMUURszFK3liLW4mA2/hJbRtFIrBXqz2hXzFPfJ JMaRQY68481em/xa45rLe7zlIudu1lv0Ch1V5PbEDdQay9fyYhEhTL3G1rRG8KOr NJ9HalUJAGLvgzMSkHzDR4PstSgrDLTZ7DtMrdoiHUujCkvyH0MtCuefiCz9BAGu havinTylFWRgbZveKuQxROtKqpRcvHPUwFta+fOXvkpCRJP54b19kwC1hSYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708519070; x=1708605470; bh=GD1apZ8BXyHhF1+gX5drklkCu1x1 jt/hczpWnZYYcjI=; b=PjAsYayuWLFrOA64FWa8uJ8GfrpghpxgTv+0MBTLW9b7 i5KmfiA84Ozpz0EMwviozRgO8al5Id+4F+EU38KPrJgqfRJS94+gkibkowEkIu8o obsd/7ARWy6e8lGK4aygfgQQ913xNYHl4irzGBCfJmI8Lkeb1dwoePQ2hDM16TL6 G3y5X1vqmXdS2iUO9Qvb4FWQeE5jNvbV7R9YdcJhuAWP6i0PVwhoAoRiBoFW4S2k 7FwR8HHb6FAZJQP3hNoCJbSWO/jwkS00v2j3XOkuAfG/L+XYsUsuw4dv3o5Qzlof RlDzPQ7sz1W3JnQ1l/0Mmy5dFnZB3NVdy/I9sD2jWA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkfhggtggujgesghdtre ertddtvdenucfhrhhomheprfgrthhrihgtkhcuufhtvghinhhhrghrughtuceophhssehp khhsrdhimheqnecuggftrfgrthhtvghrnhepueektdevtdffveeljeetgfehheeigeekle duvdeffeeghefgledttdehjeelffetnecuvehluhhsthgvrhfuihiivgepvdenucfrrghr rghmpehmrghilhhfrhhomhepphhssehpkhhsrdhimh X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Feb 2024 07:37:49 -0500 (EST) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 69681630 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 21 Feb 2024 12:33:44 +0000 (UTC) Date: Wed, 21 Feb 2024 13:37:47 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Cc: Junio C Hamano Subject: [PATCH v3 8/8] builtin/reflog: introduce subcommand to list reflogs Message-ID: References: Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kt/qvouYlH6vvdrD" Content-Disposition: inline In-Reply-To: --Kt/qvouYlH6vvdrD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable While the git-reflog(1) command has subcommands to show reflog entries or check for reflog existence, it does not have any subcommands that would allow the user to enumerate all existing reflogs. This makes it quite hard to discover which reflogs a repository has. While this can be worked around with the "files" backend by enumerating files in the ".git/logs" directory, users of the "reftable" backend don't enjoy such a luxury. Introduce a new subcommand `git reflog list` that lists all reflogs the repository knows of to fill this gap. Signed-off-by: Patrick Steinhardt --- Documentation/git-reflog.txt | 3 + builtin/reflog.c | 34 +++++++++++ t/t1410-reflog.sh | 108 +++++++++++++++++++++++++++++++++++ 3 files changed, 145 insertions(+) diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt index ec64cbff4c..a929c52982 100644 --- a/Documentation/git-reflog.txt +++ b/Documentation/git-reflog.txt @@ -10,6 +10,7 @@ SYNOPSIS -------- [verse] 'git reflog' [show] [] [] +'git reflog list' 'git reflog expire' [--expire=3D