Colors for your git diffs
Colordiffs is under development, things are bound to be broken. If you would like to help out, start an issue or submit a pull request :)
pip install colordiffs
git diff HEAD^ | colordiffs | less -r
explanation
git diff HEAD^
gets a diff between the current and the previous commitcolordiffs
reads a diff from stdinless -r
takes the output of colordiffs and usesless
to page it, the-r
is required to interpret the terminal escape codes
Python 2.x, 3.x Pygments
Support more kinds of git diff output. Right not it supports the most common --- +++ diffs, but if the diff is for a new file or deletion of file it breaks.