From 649c7bb77a173c6ef2c27fc64b8689aee9b0b8a8 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 6 Aug 2025 07:54:13 +0200 Subject: builtin/reflog: improve grouping of subcommands 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 Signed-off-by: Junio C Hamano --- builtin/reflog.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'builtin') diff --git a/builtin/reflog.c b/builtin/reflog.c index 3acaf3e32c..b00b3f9edc 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -17,21 +17,21 @@ #define BUILTIN_REFLOG_LIST_USAGE \ N_("git reflog list") -#define BUILTIN_REFLOG_EXPIRE_USAGE \ - N_("git reflog expire [--expire=