]> git.ipfire.org Git - thirdparty/git.git/commit - git-bisect.sh
bisect--helper: `write_terms` 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:32 +0000 (14:12 +0900)
commitecb3f3733cbeaf514508f97429863d33a6ac0d57
tree139a1162c59de80ba7188d72f686a1d3779a9963
parent4ba1e5c4144bd268dafb252fd652dd37d9e4a1ed
bisect--helper: `write_terms` shell function in C

Reimplement the `write_terms` shell function in C and add a `write-terms`
subcommand to `git bisect--helper` to call it from git-bisect.sh . Also
remove the subcommand `--check-term-format` as it can now be called from
inside the function write_terms() C implementation.

Also `|| exit` is added when calling write-terms subcommand from
git-bisect.sh so as to exit whenever there is an error.

Using `--write-terms` subcommand is a temporary 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 and its implementation will
be called by some other method.

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