From: Miriam Rubio Date: Mon, 20 Jan 2020 14:37:54 GMT Subject: [PATCH 23/29] bisect--helper: use `res` instead of return in BISECT_RESET case option Message-ID: <20200120143800.900-24-mirucam@gmail.com> In-Reply-To: <20200120143800.900-1-mirucam@gmail.com> From: Pranit Bauva Use `res` variable to store `bisect_reset()` output in BISECT_RESET case option to make bisect--helper.c more consistent. Mentored-by: Christian Couder Signed-off-by: Miriam Rubio --- builtin/bisect--helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 95ac1a4558..378b41cf70 100644 --- a/builtin/bisect--helper.c +++ b/builtin/bisect--helper.c @@ -1077,7 +1077,7 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix) case BISECT_RESET: if (argc > 1) return error(_("--bisect-reset requires either no argument or a commit")); - return !!bisect_reset(argc ? argv[0] : NULL); + res = bisect_reset(argc ? argv[0] : NULL); break; case CHECK_AND_SET_TERMS: if (argc != 3) -- 2.21.1 (Apple Git-122.3)