Skip to main content

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.

Metadata

Release files for colordiffs 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colordiffs 0.1.8
File Size Uploaded Provenance Actions
colordiffs-0.1.8.tar.gz 4.1 kB Without provenance Details for colordiffs-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colordiffs 0.1.8
File Interpreter ABI Platform Actions
colordiffs-0.1.8.linux-x86_64.tar.gz Details for colordiffs-0.1.8.linux-x86_64.tar.gz

Total release size: 12.4 kB

Release files / colordiffs-0.1.8.tar.gz

Download URL colordiffs-0.1.8.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7d7c9e21a11fb37ca5e53868589f8fe9bc5a448da6aa96df8bd22aac8b5bc342
BLAKE2b-256 checksum
How to use checksums
ff595978710708e2db870ec00f44ff135cf5b9bd14b6037815f01788dbd99184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / colordiffs-0.1.8.linux-x86_64.tar.gz

Download URL colordiffs-0.1.8.linux-x86_64.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed56764d4e4d1d7aaaf6215f8a723cff208fed952b9584d6c9834ef247c80101
BLAKE2b-256 checksum
How to use checksums
8384058206c66aeb2e932c2c51981fe6b36235c8e7650ede447497e685bbd4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for colordiffs 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page