summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-10-13 17:39:25 +0200
committerJunio C Hamano <gitster@pobox.com>2022-10-13 09:32:58 -0700
commit0afd556b2e1a8b5028d27cdede92bbab74a714da (patch)
tree0564ff82d1a65242b5bea1076c6972bec3dbb4e1 /builtin/commit-graph.c
parent4618d2ca827505a7bb60c30c8ac3f1446619ec1d (diff)
worktree: define subcommand -h in terms of command -h
Avoid repeating the "-h" output for the "git worktree" command, and instead define the usage of each subcommand with macros, so that the "-h" output for the command itself can re-use those definitions. See [1], [2] and [3] for prior art using the same pattern. 1. b25b727494f (builtin/multi-pack-index.c: define common usage with a macro, 2021-03-30) 2. 8757b35d443 (commit-graph: define common usage with a macro, 2021-08-23) 3. 1e91d3faf6c (reflog: move "usage" variables and use macros, 2022-03-17) Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions