]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/bisect--helper.c
bisect--helper: rewrite `check_term_format` 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:30 +0000 (14:12 +0900)
commit4ba1e5c4144bd268dafb252fd652dd37d9e4a1ed
tree3bf59da921253447961a1027ae846177aa5f06c4
parent9e1c84dfd5311c80962ea0f8a1589881c20d028d
bisect--helper: rewrite `check_term_format` shell function in C

Reimplement the `check_term_format` shell function in C and add
a `--check-term-format` subcommand to `git bisect--helper` to call it
from git-bisect.sh

Using `--check-term-format` 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/subcommand. For
eg. In conversion of write_terms() of git-bisect.sh, the subcommand will
be removed and instead check_term_format() will be called in its C
implementation while a new subcommand will be introduced for write_terms().

Helped-by: Johannes Schindelein <Johannes.Schindelein@gmx.de>
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