From: Ævar Arnfjörð Bjarmason Date: Thu, 17 Mar 2022 18:08:37 +0000 (+0100) Subject: git reflog [expire|delete]: make -h output consistent with SYNOPSIS X-Git-Tag: v2.36.0-rc0~18^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbe485298bf;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/reflog.c b/builtin/reflog.c index 25313d504a..458764400b 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -6,14 +6,13 @@ #include "reflog.h" #define BUILTIN_REFLOG_EXPIRE_USAGE \ - N_("git reflog expire [--expire=