From: Junio C Hamano Date: Thu, 04 Feb 2021 01:38:26 GMT Subject: Re: What's cooking in git.git (Jan 2021, #06; Sat, 30) Message-ID: In-Reply-To: "Miriam R." writes: >> > I think the bisect_log still haven't added back the: >> > >> > We are not bisecting >> > >> > as addressing in gohp6kv9bml9qc.fsf@gmail.com >> >> OK, I'll put it on hold and wait for a proper fix-up patch. >> > I have just sent the new patch series version with this and other minor fixes. > Best, > Miriam. Thanks for a quick turnaround. Queued and pushed out. I think the change, especially to the first one, covers the above comment sufficiently. 1: 7766d1f8a8 ! 1: 97d5ba6a39 bisect--helper: reimplement `bisect_log` shell function in C @@ Commit message Mentored-by: Lars Schneider Mentored-by: Christian Couder Mentored-by: Johannes Schindelin + Helped-by: Rafael Silva Signed-off-by: Pranit Bauva Signed-off-by: Tanushree Tumane Signed-off-by: Miriam Rubio @@ builtin/bisect--helper.c: static enum bisect_error bisect_state(struct bisect_te +static enum bisect_error bisect_log(void) +{ + int fd, status; -+ fd = open(git_path_bisect_log(), O_RDONLY); ++ const char* filename = git_path_bisect_log(); ++ ++ if (is_empty_or_missing_file(filename)) ++ return error(_("We are not bisecting.")); ++ ++ fd = open(filename, O_RDONLY); + if (fd < 0) + return BISECT_FAILED; +