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.

Source Distribution

colordiffs-0.1.8.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

colordiffs-0.1.8.linux-x86_64.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file colordiffs-0.1.8.tar.gz.

File metadata

  • Download URL: colordiffs-0.1.8.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for colordiffs-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7d7c9e21a11fb37ca5e53868589f8fe9bc5a448da6aa96df8bd22aac8b5bc342
MD5 41c8798511541452a55d4de170176820
BLAKE2b-256 ff595978710708e2db870ec00f44ff135cf5b9bd14b6037815f01788dbd99184

See more details on using hashes here.

File details

Details for the file colordiffs-0.1.8.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for colordiffs-0.1.8.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 ed56764d4e4d1d7aaaf6215f8a723cff208fed952b9584d6c9834ef247c80101
MD5 08ab4f4c79f194d9b1cb765c69cdfb48
BLAKE2b-256 8384058206c66aeb2e932c2c51981fe6b36235c8e7650ede447497e685bbd4c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page