]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/bisect.c
bisect--helper: emit usage for "git bisect"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 10 Nov 2022 16:36:43 +0000 (23:36 +0700)
committerTaylor Blau <me@ttaylorr.com>
Fri, 11 Nov 2022 22:05:58 +0000 (17:05 -0500)
commit5512376ae14b07bb3c71c3ea7b4a181dd0fb4172
tree88ccaf93ee0416042ca8436f1ec88596f75c8e3d
parent929bf9db28e617e55b52bdd307f3d44ceeb3e978
bisect--helper: emit usage for "git bisect"

In subsequent commits we'll be removing "git-bisect.sh" in favor of
promoting "bisect--helper" to a "bisect" built-in.

In doing that we'll first need to have it support "git bisect--helper
<cmd>" rather than "git bisect--helper --<cmd>", and then finally have
its "-h" output claim to be "bisect" rather than "bisect--helper".

Instead of suffering that churn let's start claiming to be "git
bisect" now. In just a few commits this will be true, and in the
meantime emitting the "wrong" usage information from the helper is a
small price to pay to avoid the churn.

Let's also declare "BUILTIN_*" macros, when we eventually migrate the
sub-commands themselves to parse_options() we'll be able to re-use the
strings. See 0afd556b2e1 (worktree: define subcommand -h in terms of
command -h, 2022-10-13) for a recent example.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
builtin/bisect--helper.c