Use exit status 2 for errors, 1 only to indicate that differences were
found between the inputs (in some operating modes).
MFC after: 1 week
Sponsored by: Klara, Inc.
Differential D55608
diff3: Produce correct exit status Authored by des on Sun, Mar 1, 7:42 PM. Tags None Referenced Files
Details
Use exit status 2 for errors, 1 only to indicate that differences were MFC after: 1 week
Diff Detail
Event TimelineComment Actions Not a huge fan of complexity, but would it make sense to turn these into an enum in a later revision for human readability? I'm game for making the change after you're done if you're busy with other things. Comment Actions Sorry -- forgot to sign-off in my last submission. An answer to my prior question/request shouldn't block this change landing since this change should definitely be made (regardless of how it's expressed) as it makes the code more "functionally correct". A code mod switching 0/1/2 to a structured enum, e.g., DIFF_EX_SAME, DIFF_EX_DIFF, DIFF_EX_ERROR can be done at a later point as part of a larger cleanup/code mod. Comment Actions I'm sorry -- it's still too early for my brain to be effective at code reviewing. I'll retract my prior acceptance until we get some clarity on some of the changes (some of the changes going from 1->2 look correct, but I'm not sure about some of the edge cases in skip/readin).
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||