From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.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 B08E624677F for ; Mon, 4 Aug 2025 09:46:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.159 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754300780; cv=none; b=OjCUj/23AsDq/91fQ9LQ1SbQRAI8p8TMF4TqSEa8u86sSIsfpYhBAe23/uQ8Bk6o7a0wgNAhw0jJIuXK6/ma9V3V3SB2j+Xs6dHFBzZS14q+jQG6prOwKJiDrqDbmUwykNftUldmifAkvO7vjyQQZKhPj7WKa6VWKisgbONQKq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754300780; c=relaxed/simple; bh=Hc11O7oG0nRH74yo2fzNLygCJa5qgWnS67d/Nk2zVaY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IvFyNsQzuYxtN8DlnVVPQgTxUk8OkuQX/YxoY7mRfQBJ7NNgYZyseUe3lUNvuFGp6X46suYlCjxCLXtz5n7eh8OVglP2A1OHEDHqOUTXw/E1tWeokPK4IoCIlJYwTcxkXNeDtfqRLXj3QoEORwxfpGWU1u5bxllDQpqxUqgT35A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject 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=KLk5eaZZ; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=JMF9uX4g; arc=none smtp.client-ip=202.12.124.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject 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="KLk5eaZZ"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="JMF9uX4g" Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id AF6C67A00C1; Mon, 4 Aug 2025 05:46:17 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 04 Aug 2025 05:46:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pks.im; h=cc:cc :content-transfer-encoding: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=fm3; t=1754300777; x=1754387177; bh=unEgfeLs+zTBUArnihMrcWP1mZCFpRpWgWdPgmpfT8I=; b= KLk5eaZZ6/BdNb9TLpG4I9txWPj3ztn2N2wQKPndTGNnspq1w6SB3QhMqcboYB2+ xWXMqwh0JYn20yTPdHABftTIYGfX9KANhz3uwVrx6eFXXnsya6dywdwQ9bmN+EW6 OFcB8LPy3b8m7rDPuoOZLkRc69Q4mff/jn/UevEv1gj9zl2f8p66EPp+aOKFzPfz DCb8EYpRC7YYKKliEN/Y5o0i8K7+35LqmIQq7XAGfbNXT6WpnNNWbu0+AaRVl1xE YVXSwmpvaWU6RX10O36t2WxN7FNaf49ustv4/V6NgLMrP8BHtueaRYBc7HGlPPgP /Mxzy64o5UdtV4clxvgUlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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-sender:x-me-sender:x-sasl-enc; s=fm3; t=1754300777; x= 1754387177; bh=unEgfeLs+zTBUArnihMrcWP1mZCFpRpWgWdPgmpfT8I=; b=J MF9uX4gpraXNzlf6SaPvoE64aOGOfuCK/ZPTUPqZ/mOTx0RKgtTQpZ778rdR+9tX oq26ZO0YsGdSvsr8DUtLyRWxbqax4zo9TkfvitTBM3bVsuBPgzmUR54ca9LD0igp TL+edbTuCePa0KOgplXRyAg7PR2m/L2xwnGSPHrTpOsoQ9Gt9aSIk8wTOUefnBCb MPIHMmS9QUyYXBhKWITZ1/E+Osny0QyHeiIVrYHSTwTEZDloK4HQ13pTOpWZvF8M QYQ/eFc6ARojj2p4xJN9NniflovgavzLlEBsPV6AcknRct3ngAGbjehglSGrD4xX k+5NJOYayyJoDhGfUqVSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudduleejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpefrrghtrhhi tghkucfuthgvihhnhhgrrhguthcuoehpshesphhkshdrihhmqeenucggtffrrghtthgvrh hnpeffueeiudejvdekheeuvdekfeffiedvueelteekudehjeetkeegvddugfdtgfeileen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpshesph hkshdrihhmpdhnsggprhgtphhtthhopeelpdhmohguvgepshhmthhpohhuthdprhgtphht thhopehkrghrthhhihhkrddukeeksehgmhgrihhlrdgtohhmpdhrtghpthhtohepjhhlth hosghlvghrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepghhithhsthgvrhesphhosgho gidrtghomhdprhgtphhtthhopehtohhonhesihhothgtlhdrtghomhdprhgtphhtthhope gsvghnrdhknhhosghlvgesghhmrghilhdrtghomhdprhgtphhtthhopehsiigvuggvrhdr uggvvhesghhmrghilhdrtghomhdprhgtphhtthhopehgihhtsehvghgvrhdrkhgvrhhnvg hlrdhorhhgpdhrtghpthhtohepkhhrihhsthhofhhfvghrhhgruhhgshgsrghkkhesfhgr shhtmhgrihhlrdgtohhmpdhrtghpthhtohepphgvfhhfsehpvghffhdrnhgvth X-ME-Proxy: Feedback-ID: i197146af:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Aug 2025 05:46:15 -0400 (EDT) Received: by mail (OpenSMTPD) with ESMTPSA id ddc407d2 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 4 Aug 2025 09:46:15 +0000 (UTC) From: Patrick Steinhardt Date: Mon, 04 Aug 2025 11:46:02 +0200 Subject: [PATCH v4 2/9] builtin/reflog: improve grouping of subcommands Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250804-pks-reflog-append-v4-2-13213fef7200@pks.im> References: <20250804-pks-reflog-append-v4-0-13213fef7200@pks.im> In-Reply-To: <20250804-pks-reflog-append-v4-0-13213fef7200@pks.im> To: git@vger.kernel.org Cc: Karthik Nayak , Justin Tobler , Junio C Hamano , =?utf-8?q?SZEDER_G=C3=A1bor?= , Toon Claes , Jeff King , Kristoffer Haugsbakk , Ben Knoble X-Mailer: b4 0.14.2 The way subcommands of git-reflog(1) are laid out does not make any immediate sense. Reorder them such that read-only subcommands precede writing commands for a bit more structure. Furthermore, move the "expire" subcommand last. This prepares for a subsequent change where we are about to introduce a new "write" command to append reflog entries. Like this, the writing subcommands are ordered such that those affecting a single reflog come before those spanning across all reflogs. Signed-off-by: Patrick Steinhardt --- Documentation/git-reflog.adoc | 61 ++++++++++++++++++++++--------------------- builtin/reflog.c | 38 +++++++++++++-------------- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/Documentation/git-reflog.adoc b/Documentation/git-reflog.adoc index 707a9b39ed..c3801b82fb 100644 --- a/Documentation/git-reflog.adoc +++ b/Documentation/git-reflog.adoc @@ -11,13 +11,13 @@ SYNOPSIS [synopsis] git reflog [show] [] [] git reflog list -git reflog expire [--expire=