Skip to main content

Syntax highlights for your git diffs

Project description

Colors for your git diffs

colordiffs.png

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 :)

Installation

pip install colordiffs

How to run

git diff HEAD^ | colordiffs | less -r

explanation

  1. git diff HEAD^ gets a diff between the current and the previous commit
  2. colordiffs reads a diff from stdin
  3. less -r takes the output of colordiffs and uses less to page it, the -r is required to interpret the terminal escape codes

Requirements

Python 2.x, 3.x
Pygments

TODO

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for colordiffs, version 0.1.8
Filename, size File type Python version Upload date Hashes
Filename, size colordiffs-0.1.8.linux-x86_64.tar.gz (8.3 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size colordiffs-0.1.8.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page