Re: [PATCH v3 5/5] branch.c: replace questionable exit() codes

From
Junio C Hamano <hidden>
Date
2021-12-13 09:02:44
Reply to
Ævar Arnfjörð Bjarmason, 2021-12-10
Ævar Arnfjörð Bjarmason [off-list ref] writes:
The latter should really be "exit(1)", not 128. We should reserve that
for die().
Is it because install_branch_config_multiple_remotes() gives enough
information to the user that the caller exits without its own
message?  In other words, are messages given by the callee to the
users are morally equivalent to what the caller would call die()
with, if the callee were silent?  If so, 128 is perfectly fine.  If
not, 1 or anything positive that is not 128 may be more appropriate.

Either case, -1 is a definite no-no.
Thread (92 messages) 92 messages, 5 authors, last reply 2022-02-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help