]> git.ipfire.org Git - thirdparty/git.git/commit - bisect.c
bisect--helper: reimplement `bisect_next` and `bisect_auto_next` shell functions...
authorPranit Bauva <pranit.bauva@gmail.com>
Thu, 24 Sep 2020 12:33:40 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Sep 2020 19:06:30 +0000 (12:06 -0700)
commit517ecb3161daa4503f7638489fd44177b3659913
tree4b83c320cd37fe87d3184796a21ef1ffb8f7d1f6
parentc7a7f48f4fe8319867ea025e55e930b48455652a
bisect--helper: reimplement `bisect_next` and `bisect_auto_next` shell functions in C

Reimplement the `bisect_next()` and the `bisect_auto_next()` shell functions
in C and add the subcommands to `git bisect--helper` to call them from
git-bisect.sh .

bisect_auto_next() function returns an enum bisect_error type as whole
`git bisect` can exit with an error code when bisect_next() does.

Return an error when `bisect_next()` fails, that fix a bug on shell script
version.

Using `--bisect-next` and `--bisect-auto-next` subcommands is a
temporary measure to port shell function to C so as to use the existing
test suite. As more functions are ported, `--bisect-auto-next`
subcommand will be retired and will be called by some other methods.

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>
bisect.c
builtin/bisect--helper.c
git-bisect.sh