Merge branch 'jk/merge-file-exit-code'

"git merge-file" tried to signal how many conflicts it found, which
obviously would not work well when there are too many of them.

* jk/merge-file-exit-code:
  merge-file: clamp exit code to maximum 127
This commit is contained in:
Junio C Hamano
2015-10-30 13:07:08 -07:00
3 changed files with 38 additions and 1 deletions

View File

@ -104,5 +104,8 @@ int cmd_merge_file(int argc, const char **argv, const char *prefix)
free(result.ptr);
}
if (ret > 127)
ret = 127;
return ret;
}