I\'m currently trying to to code-style checking on the PRs of a (github) repository, and I want to deliver patches to the submitters with which they can easily fix the codes
Try to check against your patch file - example :
git apply --reject mypatch.patch
this will show you differences if any - here is an example of how it could look like :
error: patch failed: : error: while searching for : cout << "}" << endl; // example of a line in your patch