tk0miya / diff-highlight

Apache License 2.0
34 stars 6 forks source link

diff-highlight: pretty diff highlighter; emphasis changed words in diff

diff-highlight adds word highlighting feature to git, mercurial and other diff viewers.

.. image:: https://travis-ci.org/tk0miya/diff-highlight.svg?branch=master :target: https://travis-ci.org/tk0miya/diff-highlight

.. image:: https://coveralls.io/repos/tk0miya/diff-highlight/badge.png?branch=master :target: https://coveralls.io/r/tk0miya/diff-highlight?branch=master

.. image:: https://codeclimate.com/github/tk0miya/diff-highlight/badges/gpa.svg :target: https://codeclimate.com/github/tk0miya/diff-highlight

Features

Setup

Use easy_install or pip::

$ sudo easy_install diff-highlight

Or

$ sudo pip install diff-highlight

Applying to git

Add pager settings to your $HOME/.gitconfig to enable word highlights::

[pager] log = diff-highlight | less show = diff-highlight | less diff = diff-highlight | less

and to use diff-highlight for git add -p::

[interactive] diffFilter = diff-highlight

Applying to mercurial

Add color and diff_highlight extensions to your $HOME/.hgrc to enable word highlights::

[extensions] color = diff_highlight =

Requirements

License

Apache License 2.0 (highlights/pprint.py is under PSFL).

History

1.2.0 (2016-02-07)

1.1.0 (2015-07-12)

1.0.3 (2015-03-30)

1.0.2 (2014-06-08)

1.0.1 (2013-12-22)

1.0.0 (2013-12-22)

0.1.0 (2013-12-20)