]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/reflog: improve grouping of subcommands
authorPatrick Steinhardt <ps@pks.im>
Wed, 6 Aug 2025 05:54:13 +0000 (07:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Aug 2025 14:36:29 +0000 (07:36 -0700)
commit649c7bb77a173c6ef2c27fc64b8689aee9b0b8a8
tree5c2e8a21bbb5e1e233ae5bad7397af50c223d6c0
parente9493c55af074fb7179922fafa61104332c05cc9
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 <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-reflog.adoc
builtin/reflog.c