Skip to content

Commit b7a6f16

Browse files
pranitbauva1997gitster
authored andcommitted
bisect--helper: use res instead of return in BISECT_RESET case option
Use `res` variable to store `bisect_reset()` output in BISECT_RESET case option to make bisect--helper.c more consistent. Mentored-by: Christian Couder <[email protected]> Signed-off-by: Miriam Rubio <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 68efed8 commit b7a6f16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

builtin/bisect--helper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,8 @@ int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
10471047
case BISECT_RESET:
10481048
if (argc > 1)
10491049
return error(_("--bisect-reset requires either no argument or a commit"));
1050-
return !!bisect_reset(argc ? argv[0] : NULL);
1050+
res = bisect_reset(argc ? argv[0] : NULL);
1051+
break;
10511052
case CHECK_AND_SET_TERMS:
10521053
if (argc != 3)
10531054
return error(_("--check-and-set-terms requires 3 arguments"));

0 commit comments

Comments
 (0)