I'm writing a program to be able to merge custom binary files. I want to let Git trust the exit code of my program, but it seems badly documented which exit codes do indicate a success.
The doc for git-mergetool states:
If the custom merge tool correctly indicates the success of a merge resolution with its exit code, then the configuration variable
mergetool.<tool>.trustExitCode
can be set totrue
. Otherwise, git mergetool will prompt the user to indicate the success of the resolution after the custom tool has exited.
But this doesn't tell me which exit codes to use for which case. Any ideas?