Git diff --color-words

Git command for better patch review.

The usual patch format is often not really human readable. Consider this patch on (issue) that only removes commas. How can I be sure that only the comma was removed on the changed lines? Fortunately, Git can help here. Download the patch, apply it to your repository and use the following command to get a colored output:

git diff --color-words

The output will not show changed lines but changed words, usually removed words in red and added words in green. So you get a much more fine-grained overview of what the patch changes.