🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

colordiffs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

colordiffs

Syntax highlights for your git diffs

0.1.8
PyPI
Maintainers
1

========== Colordiffs

Colors for your git diffs

.. image:: 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

  • git diff HEAD^ gets a diff between the current and the previous commit
  • colordiffs reads a diff from stdin
  • 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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts