]> git.ipfire.org Git - thirdparty/git.git/commit
bisect--helper: use '-res' in 'cmd_bisect__helper' return
authorMiriam Rubio <mirucam@gmail.com>
Fri, 28 Aug 2020 12:46:06 +0000 (14:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Aug 2020 23:21:16 +0000 (16:21 -0700)
commit30276765c114bbd57ef0d8e6cf5489501599421a
tree622eaf90a535d14841142cb624b0bb026ee9b1a3
parentef5aef5ee0f8ff932f8beb21ff33a4dafee214b5
bisect--helper: use '-res' in 'cmd_bisect__helper' return

Following 'enum bisect_error' vocabulary, return variable 'res' is
always non-positive.
Let's use '-res' instead of 'abs(res)' to make the code clearer.

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bisect--helper.c