]> git.ipfire.org Git - thirdparty/git.git/commit
repo: show subcommand-specific help text
authorMahi Kassa <mahlet.takassa@gmail.com>
Wed, 25 Mar 2026 11:51:48 +0000 (12:51 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2026 17:35:27 +0000 (10:35 -0700)
commitabd728cdf6ea0164cfd7ede2223f669037ff531d
treeac1ceebea258ab8a1b8ba55b4ceb4e5df4d92d89
parent4be77c732c9951a60f743af04a5906fdc41c5795
repo: show subcommand-specific help text

Use subcommand-specific usage arrays for "git repo info" and
"git repo structure" so that each command shows only its own
synopsis in help output.

Add tests to cover the subcommand help behavior.

Signed-off-by: Mahi Kassa <mahlet.takassa@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repo.c
t/t1900-repo-info.sh
t/t1901-repo-structure.sh