From: Ævar Arnfjörð Bjarmason Date: Thu, 17 Mar 2022 18:08:36 +0000 (+0100) Subject: reflog: move "usage" variables and use macros X-Git-Tag: v2.36.0-rc0~18^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e91d3faf6c6de7667603c9c81252161ee70d7b9;p=thirdparty%2Fgit.git reflog: move "usage" variables and use macros Move the "usage" variables in builtin/reflog.c to the top of the file, in preparation for later commits defining a common "reflog_usage" in terms of some of these strings, as was done in 8757b35d443 (commit-graph: define common usage with a macro, 2021-08-23). While we're at it let's make them "const char *const", as is the convention with these "usage" variables. The use of macros here is a bit odd, but in subsequent commits we'll make these use the same pattern as builtin/commit-graph.c uses since 8757b35d443 (commit-graph: define common usage with a macro, 2021-08-23). Signed-off-by: Ævar Arnfjörð Bjarmason Signed-off-by: Junio C Hamano --- diff --git a/builtin/reflog.c b/builtin/reflog.c index c864f27630..25313d504a 100644 --- a/builtin/reflog.c +++ b/builtin/reflog.c @@ -5,8 +5,31 @@ #include "worktree.h" #include "reflog.h" +#define BUILTIN_REFLOG_EXPIRE_USAGE \ + N_("git reflog expire [--expire=