]> git.ipfire.org Git - thirdparty/git.git/commit
bisect--helper: reimplement `bisect_autostart` shell function in C
authorPranit Bauva <pranit.bauva@gmail.com>
Thu, 24 Sep 2020 12:33:38 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Sep 2020 19:06:30 +0000 (12:06 -0700)
commit09535f056b08445e28c4881064b8435fb434d760
tree1168e9d46824c00d219816f1120557b619beb020
parent7b4de74b5de5c1ceb035d33168d482ad213b4137
bisect--helper: reimplement `bisect_autostart` shell function in C

Reimplement the `bisect_autostart()` shell function in C and add the
C implementation from `bisect_next()` which was previously left
uncovered.

Add `--bisect-autostart` subcommand to be called from git-bisect.sh.
Using `--bisect-autostart` subcommand is a temporary measure to port
the shell function to C so as to use the existing test suite. As more
functions are ported, this subcommand will be retired and
bisect_autostart() will be called directly by `bisect_state()`.

Change behavior of shell script that returned success when user aborted
the bisection.

Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c
git-bisect.sh