From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS54825 147.75.192.0/21 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 69D101F44D for ; Mon, 19 Feb 2024 14:36:22 +0000 (UTC) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7BA831C22D8D for ; Mon, 19 Feb 2024 14:36:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B1DB3839B; Mon, 19 Feb 2024 14:35:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pks.im header.i=@pks.im header.b="Eb/mfYb/"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="keB9Ldmi" Received: from fhigh8-smtp.messagingengine.com (fhigh8-smtp.messagingengine.com [103.168.172.159]) (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 2F330381C4 for ; Mon, 19 Feb 2024 14:35:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353345; cv=none; b=IS+9s/Ue1RZY+UCE46b22qdLSxmq9pWArkpfHB5YvNKw5mE932VW8g6ZqMYH5GFKzjxiVSVFbkh1K5SFh5g6Y7Rm1MA5Yaee1vMvxUUFyfvoTmvkc6YRorezfeef2CCmkZlJE7Bw4nNmQ6ePmNRxUVxExHuBYBXZCtMwPaVfeYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708353345; c=relaxed/simple; bh=p9eLD1HclpFDsFKQxNXatqzXu5haaqKrA2YMk1ChIus=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LLHyZNfJ+jb9Oha5VtxllZDAY9Xr642jnpMxZ9wLHxRqrcE7AvY5ft3+8G+cT5Ica6D902sD8AbhFgI7imsBA8EQYH+ZoBgQrtGwWSvGvr+SoRVhcGxaUU5AqSMBmfGRXA8EJM+KerZZtr6/Jzhl0a5KFduk6ctkwLTLo7HfddA= 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=Eb/mfYb/; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=keB9Ldmi; arc=none smtp.client-ip=103.168.172.159 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 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 2BC9F11400D7 for ; Mon, 19 Feb 2024 09:35:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 19 Feb 2024 09:35:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=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=1708353343; x=1708439743; bh=segsBc6Mw5 ZHwo2eIOfTAdXkpeQ/xRY4CPHDshzH2hw=; b=Eb/mfYb/Ry//7hwc39JL8I6QWC UTW7ep6Da6wI+r30k03WFgRqDxnAelZqBhZuhBKDEolq4js4XJMXbPOixyw9DMQ7 3n5Fr6Q3VO0V+kysH53l9lfftWwNw8QJKfnMrJ6UG1Fe6S9udVfyvvmojRsnoKOT JvhFcBbRHWdwrm1586kufaADtmnDMS3rYY7/LNJsNkrJ+psdRg10NdFzvnvTTiuz 239N7WUObjpo5Vn6GSKF5P3mMoUxM64qg9cSJtSmlrDAzr9rJmDBAelxiKUqocE4 B0mrbbzjmonbIKyrOnstgs/lBxV8urUvX+Bumuzx40h5I+vQRkmgmTIS4/Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=1708353343; x=1708439743; bh=segsBc6Mw5ZHwo2eIOfTAdXkpeQ/ xRY4CPHDshzH2hw=; b=keB9Ldmip4+IMoJhqjza+pQ+fafFnDbIRHvIxWIbHW8R V09AE8WonPVmZSux3d6MpGXqNmn3C3TvHKwf2VxUysDl7kuxY7sVbekI2iE3p5Fa TDjb+aQ+pqB8CLhp9ce2FbF/oOGNVu6bYtT/he75tGhMrMoY5a4WE2fZ7X+T9mln 8c7IN1zGhDfbv6Ai4FMZ5YoJWg41TWhKmaYiGPWYJwmEAQa6R63xorB5MSBxtg1E vtj1C8g6NqIioqzUw3SzcGrAxjKVetpNR8l2jcdhm6WeTOugMRee4LszOi/qqTzo O3Lg5JLU4LCNCOUqadBix4OJIX38mUz1C0Gk5ibPuw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgdeihecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehgtderre dttddvnecuhfhrohhmpefrrghtrhhitghkucfuthgvihhnhhgrrhguthcuoehpshesphhk shdrihhmqeenucggtffrrghtthgvrhhnpeehgefhtdefueffheekgfffudelffejtdfhvd ejkedthfehvdelgfetgfdvtedthfenucevlhhushhtvghrufhiiigvpedunecurfgrrhgr mhepmhgrihhlfhhrohhmpehpshesphhkshdrihhm X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 19 Feb 2024 09:35:42 -0500 (EST) Received: by vm-mail (OpenSMTPD) with ESMTPSA id 78eae9a2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 19 Feb 2024 14:31:42 +0000 (UTC) Date: Mon, 19 Feb 2024 15:35:40 +0100 From: Patrick Steinhardt To: git@vger.kernel.org Subject: [PATCH 6/6] 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="SR1iqY/gf7/39r02" Content-Disposition: inline In-Reply-To: --SR1iqY/gf7/39r02 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 | 69 ++++++++++++++++++++++++++++++++++++ 3 files changed, 106 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