]> git.ipfire.org Git - thirdparty/git.git/commit
reflog: move "usage" variables and use macros
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 17 Mar 2022 18:08:36 +0000 (19:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Mar 2022 01:03:12 +0000 (18:03 -0700)
commit1e91d3faf6c6de7667603c9c81252161ee70d7b9
tree57492f211b6a9eea916168a5837c722ec6b1a03f
parentd3ab1a5fcf3db26ba36fb5be07365908f7906ddb
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 <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c