]> git.ipfire.org Git - thirdparty/git.git/commitdiff
bisect: swap command-line options in documentation
authorHugo Locurcio <hugo.locurcio@hugo.pro>
Fri, 28 Aug 2020 15:31:19 +0000 (15:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Aug 2020 21:06:06 +0000 (14:06 -0700)
The positional arguments are specified in this order: "bad" then "good".
To avoid confusion, the options above the positional arguments
are now specified in the same order. They can still be specified in any
order since they're options, not positional arguments.

Signed-off-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-bisect.txt
builtin/bisect--helper.c
git-bisect.sh

index 0e993e458717743e4e2f136d27f7291101853bba..fbb39fbdf5d62a455c8b62d4870817998d0434ad 100644 (file)
@@ -16,7 +16,7 @@ DESCRIPTION
 The command takes various subcommands, and different options depending
 on the subcommand:
 
- git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
+ git bisect start [--term-{new,bad}=<term> --term-{old,good}=<term>]
                  [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]
  git bisect (bad|new|<term-new>) [<rev>]
  git bisect (good|old|<term-old>) [<rev>...]
index cdda279b23ca3c8ede39058a52a1b3a0f303b43d..7dcc1b518831fed008f0f06463554099d60cff68 100644 (file)
@@ -27,7 +27,7 @@ static const char * const git_bisect_helper_usage[] = {
        N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
        N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
        N_("git bisect--helper --bisect-terms [--term-good | --term-old | --term-bad | --term-new]"),
-       N_("git bisect--helper --bisect-start [--term-{old,good}=<term> --term-{new,bad}=<term>]"
+       N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
                                            " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
        NULL
 };
index c7580e51a0f9953b2a68296fedbd3cfe2f7c05e6..3ec7558bdc579da765f28268e79e191d7622c402 100755 (executable)
@@ -3,7 +3,7 @@
 USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]'
 LONG_USAGE='git bisect help
        print this long help message.
-git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
+git bisect start [--term-{new,bad}=<term> --term-{old,good}=<term>]
                 [--no-checkout] [<bad> [<good>...]] [--] [<pathspec>...]
        reset bisect state and start bisection.
 git bisect (bad|new) [<rev>]