summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorPranit Bauva <pranit.bauva@gmail.com>2021-02-03 21:54:32 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-03 22:52:08 (GMT)
commit97d5ba6a39253a38229dd4518afd0410d13f615a (patch)
tree4379d89db39e8be9efc34786414971ed288cead6 /git-bisect.sh
parent6d3ef5b467eccd2769f1aa1c555d317d3c8dc707 (diff)
downloadgit-97d5ba6a39253a38229dd4518afd0410d13f615a.zip
git-97d5ba6a39253a38229dd4518afd0410d13f615a.tar.gz
git-97d5ba6a39253a38229dd4518afd0410d13f615a.tar.bz2
bisect--helper: reimplement `bisect_log` shell function in C
Reimplement the `bisect_log()` shell function in C and also add `--bisect-log` subcommand to `git bisect--helper` to call it from git-bisect.sh . Using `--bisect-log` subcommand is a temporary measure to port shell function to C so as to use the existing test suite. Mentored-by: Lars Schneider <larsxschneider@gmail.com> Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Helped-by: Rafael Silva <rafaeloliveira.cs@gmail.com> 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>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index 1f3f6e9..05863cc 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -169,11 +169,6 @@ exit code \$res from '\$command' is < 0 or >= 128" >&2
done
}
-bisect_log () {
- test -s "$GIT_DIR/BISECT_LOG" || die "$(gettext "We are not bisecting.")"
- cat "$GIT_DIR/BISECT_LOG"
-}
-
get_terms () {
if test -s "$GIT_DIR/BISECT_TERMS"
then
@@ -210,7 +205,7 @@ case "$#" in
replay)
bisect_replay "$@" ;;
log)
- bisect_log ;;
+ git bisect--helper --bisect-log || exit ;;
run)
bisect_run "$@" ;;
terms)