]> git.ipfire.org Git - thirdparty/git.git/commit - git-bisect.sh
bisect--helper: `bisect_clean_state` shell function in C
authorPranit Bauva <pranit.bauva@gmail.com>
Fri, 29 Sep 2017 06:49:39 +0000 (06:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Oct 2017 05:12:33 +0000 (14:12 +0900)
commitfb71a329964da0892cc11cc94b5b379b0803ed92
treec7140d412c414f18ecef52d281ca3e61d98aa90c
parentecb3f3733cbeaf514508f97429863d33a6ac0d57
bisect--helper: `bisect_clean_state` shell function in C

Reimplement `bisect_clean_state` shell function in C and add a
`bisect-clean-state` subcommand to `git bisect--helper` to call it from
git-bisect.sh .

Using `--bisect-clean-state` subcommand is a measure to port shell
function to C so as to use the existing test suite. As more functions
are ported, this subcommand will be retired but its implementation  will
be called by bisect_reset() and bisect_start().

Also introduce a function `mark_for_removal` to store the refs which
need to be removed while iterating through the refs.

Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
bisect.h
builtin/bisect--helper.c
git-bisect.sh