From: Junio C Hamano Date: Wed, 15 Nov 2017 03:14:36 +0000 (+0900) Subject: Merge branch 'sb/bisect-run-empty' X-Git-Tag: v2.16.0-rc0~119 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5066a008bb6a810f908c020de02a646cf3c92f34?ds=inline;hp=-c Merge branch 'sb/bisect-run-empty' "git bisect run" that did not specify any command to run used to go ahead and treated all commits to be tested as 'good'. This has been corrected by making the command error out. * sb/bisect-run-empty: bisect run: die if no command is given --- 5066a008bb6a810f908c020de02a646cf3c92f34 diff --combined git-bisect.sh index a82256e345,a69e436563..54cbfecc5a --- a/git-bisect.sh +++ b/git-bisect.sh @@@ -1,6 -1,6 +1,6 @@@ #!/bin/sh -USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|replay|log|run]' +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-{new,bad}=] @@@ -20,7 -20,7 +20,7 @@@ git bisect nex find next bisection to test and check it out. git bisect reset [] finish bisection search and go back to commit. -git bisect visualize +git bisect (visualize|view) show bisect status in gitk. git bisect replay replay bisection log. @@@ -450,6 -450,8 +450,8 @@@ bisect_replay () bisect_run () { bisect_next_check fail + test -n "$*" || die "$(gettext "bisect run failed: no command provided.")" + while true do command="$@"