Skip to content

Commit ef4d9f8

Browse files
Calinougitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d9cd433 commit ef4d9f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Documentation/git-bisect.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DESCRIPTION
1616
The command takes various subcommands, and different options depending
1717
on the subcommand:
1818

19-
git bisect start [--term-{old,good}=<term> --term-{new,bad}=<term>]
19+
git bisect start [--term-{new,bad}=<term> --term-{old,good}=<term>]
2020
[--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]
2121
git bisect (bad|new|<term-new>) [<rev>]
2222
git bisect (good|old|<term-old>) [<rev>...]

builtin/bisect--helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static const char * const git_bisect_helper_usage[] = {
2727
N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
2828
N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
2929
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>]"
3131
" [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]"),
3232
NULL
3333
};

git-bisect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|view|replay|log|run]'
44
LONG_USAGE='git bisect help
55
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>]
77
[--no-checkout] [<bad> [<good>...]] [--] [<pathspec>...]
88
reset bisect state and start bisection.
99
git bisect (bad|new) [<rev>]

0 commit comments

Comments
 (0)