]> git.99rst.org Git - git.git/commit
git reflog [expire|delete]: make -h output consistent with SYNOPSIS
authorÆvar Arnfjörð Bjarmason <redacted>
Thu, 17 Mar 2022 18:08:37 +0000 (19:08 +0100)
committerJunio C Hamano <redacted>
Fri, 18 Mar 2022 01:03:12 +0000 (18:03 -0700)
commitcbe485298bf06a4e6377f5a692c82a9e3ad38069
tree92037b92a4f2fd8141dda5f961259c804465fc55
parent1e91d3faf6c6de7667603c9c81252161ee70d7b9
git reflog [expire|delete]: make -h output consistent with SYNOPSIS

Make use of the guaranteed pretty alignment of "-h" output added in my
4631cfc20bd (parse-options: properly align continued usage output,
2021-09-21) and wrap and format the "git reflog [expire|delete] -h"
usage output. Also add the missing "--single-worktree" option, as well
as adding other things that were in the SYNOPSIS output, but not in
the "-h" output.

This was last touched in 33d7bdd6459 (builtin/reflog.c: use
parse-options api for expire, delete subcommands, 2022-01-06), but in
that commit the previous usage() output was faithfully
reproduced. Let's follow-up on that and make this even easier to read.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/reflog.c
git clone https://git.99rst.org/PROJECT