]> git.ipfire.org Git - thirdparty/git.git/commit
bisect--helper: simplify exit code computation
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 12 Jan 2023 15:19:09 +0000 (16:19 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jan 2023 22:17:13 +0000 (14:17 -0800)
commit7a8d7aaa47d952f255f29528359ee5e4edb7c6d2
tree089daba968e778336ec565f46640e394f8c96557
parenta38d39a4c50d1275833aba54c4dbdfce9e2e9ca1
bisect--helper: simplify exit code computation

We _already_ have a function to determine whether a given `enum
bisect_error` value is non-zero but still _actually_ indicates success.

Let's use it instead of duplicating the logic.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect.c