path: root/bisect.h
diff options
authorPranit Bauva <>2017-09-29 06:49:39 (GMT)
committerJunio C Hamano <>2017-10-06 05:12:33 (GMT)
commitfb71a329964da0892cc11cc94b5b379b0803ed92 (patch)
treec7140d412c414f18ecef52d281ca3e61d98aa90c /bisect.h
parentecb3f3733cbeaf514508f97429863d33a6ac0d57 (diff)
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 . 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 <> Mentored-by: Christian Couder <> Signed-off-by: Pranit Bauva <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'bisect.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/bisect.h b/bisect.h
index acd12ef..0ae63d4 100644
--- a/bisect.h
+++ b/bisect.h
@@ -28,4 +28,6 @@ extern int estimate_bisect_steps(int all);
extern void read_bisect_terms(const char **bad, const char **good);
+extern int bisect_clean_state(void);