@matheusbsbs / matheus-bagliano / commits / ef4d9f8a32
Fork 0

bisect: swap command-line options in documentation

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>

Hugo Locurcio committed Aug 28, 2020 at 15:31 UTC ef4d9f8a32f472feacb135c4e0508d53d0f93fb0
3 files changed +3 -3
Documentation/git-bisect.txt
+1 -1
@@ -16,7 +16,7 @@ DESCRIPTION
16 The command takes various subcommands, and different options depending
17 on the subcommand:
18
19 - git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
19 + git bisect start [--term-{new,bad}=<term> --term-{old,good}=<term>]
20 [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]
21 git bisect (bad|new|<term-new>) [<rev>]
22 git bisect (good|old|<term-old>) [<rev>...]
builtin/bisect--helper.c
+1 -1
@@ -27,7 +27,7 @@ static const char * const git_bisect_helper_usage[] = {
27 N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
28 N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
29 N_("git bisect--helper --bisect-terms [--term-good | --term-old | --term-bad | --term-new]"),
30 - N_("git bisect--helper --bisect-start [--term-{old,good}=<term> --term-{new,bad}=<term>]"
30 + N_("git bisect--helper --bisect-start [--term-{new,bad}=<term> --term-{old,good}=<term>]"
31 " [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
32 NULL
33 };
git-bisect.sh
+1 -1
@@ -3,7 +3,7 @@
3 USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]'
4 LONG_USAGE='git bisect help
5 print this long help message.
6 -git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
6 +git bisect start [--term-{new,bad}=<term> --term-{old,good}=<term>]
7 [--no-checkout] [<bad> [<good>...]] [--] [<pathspec>...]
8 reset bisect state and start bisection.
9 git bisect (bad|new) [<rev>]