Skip to content

Commit 958bf6b

Browse files
committed
bisect: explain the rationale behind 125
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b547ce0 commit 958bf6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Documentation/git-bisect.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,12 @@ exit(3) manual page), as the value is chopped with "& 0377".
241241

242242
The special exit code 125 should be used when the current source code
243243
cannot be tested. If the script exits with this code, the current
244-
revision will be skipped (see `git bisect skip` above).
244+
revision will be skipped (see `git bisect skip` above). 125 was chosen
245+
as the highest sensible value to use for this purpose, because 126 and 127
246+
are used by POSIX shells to signal specific error status (127 is for
247+
command not found, 126 is for command found but not executable---these
248+
details do not matter, as they are normal errors in the script, as far as
249+
"bisect run" is concerned).
245250

246251
You may often find that during a bisect session you want to have
247252
temporary modifications (e.g. s/#define DEBUG 0/#define DEBUG 1/ in a

0 commit comments

Comments
 (0)