Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] bisect: use "$GIT_DIR/BISECT_START" to check if we are bisecting

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:39

Christian Couder [off-list ref] writes:
quoted
The reason you ignore an existing but empty BISECT_START file is...?
... that it should not happen, because this file is only written 
in "bisect_start" and there its content comes either from the current HEAD 
or from a previous not empty BISECT_START file.

We might add a check for an empty BISECT_START file and warn in this case 
that the file may have been corrupted, but that may be for another patch.
My question was more about "why are you acting as if distinction between
empty and nonempty BISECT_START matters?"

Because you "echo $start_head >$GIT_DIR/BISECT_START", this file will
always at least have a terminating LF even when the head is detached.
IOW, if it exists, it will never be empty, I think.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help