t1091/t3705: remove 'test-tool read-cache --table'
[git/debian.git] / git-bisect.sh
blob405cf76f2a3d94d5cb03b50d59ff729b745842ad
1 #!/bin/sh
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-{new,bad}=<term> --term-{old,good}=<term>]
7 [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<pathspec>...]
8 reset bisect state and start bisection.
9 git bisect (bad|new) [<rev>]
10 mark <rev> a known-bad revision/
11 a revision after change in a given property.
12 git bisect (good|old) [<rev>...]
13 mark <rev>... known-good revisions/
14 revisions before change in a given property.
15 git bisect terms [--term-good | --term-bad]
16 show the terms used for old and new commits (default: bad, good)
17 git bisect skip [(<rev>|<range>)...]
18 mark <rev>... untestable revisions.
19 git bisect next
20 find next bisection to test and check it out.
21 git bisect reset [<commit>]
22 finish bisection search and go back to commit.
23 git bisect (visualize|view)
24 show bisect status in gitk.
25 git bisect replay <logfile>
26 replay bisection log.
27 git bisect log
28 show bisect log.
29 git bisect run <cmd>...
30 use <cmd>... to automatically bisect.
32 Please use "git help bisect" to get the full man page.'
34 OPTIONS_SPEC=
35 . git-sh-setup
37 TERM_BAD=bad
38 TERM_GOOD=good
40 get_terms () {
41 if test -s "$GIT_DIR/BISECT_TERMS"
42 then
44 read TERM_BAD
45 read TERM_GOOD
46 } <"$GIT_DIR/BISECT_TERMS"
50 case "$#" in
52 usage ;;
54 cmd="$1"
55 get_terms
56 shift
57 case "$cmd" in
58 help)
59 git bisect -h ;;
60 start)
61 git bisect--helper --bisect-start "$@" ;;
62 bad|good|new|old|"$TERM_BAD"|"$TERM_GOOD")
63 git bisect--helper --bisect-state "$cmd" "$@" ;;
64 skip)
65 git bisect--helper --bisect-skip "$@" || exit;;
66 next)
67 # Not sure we want "next" at the UI level anymore.
68 git bisect--helper --bisect-next "$@" || exit ;;
69 visualize|view)
70 git bisect--helper --bisect-visualize "$@" || exit;;
71 reset)
72 git bisect--helper --bisect-reset "$@" ;;
73 replay)
74 git bisect--helper --bisect-replay "$@" || exit;;
75 log)
76 git bisect--helper --bisect-log || exit ;;
77 run)
78 git bisect--helper --bisect-run "$@" || exit;;
79 terms)
80 git bisect--helper --bisect-terms "$@" || exit;;
82 usage ;;
83 esac
84 esac