Skip to main content

pretty diff highlighter; emphasis changed words in diff

Project description

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

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

https://travis-ci.org/tk0miya/diff-highlight.svg?branch=master https://coveralls.io/repos/tk0miya/diff-highlight/badge.png?branch=master https://codeclimate.com/github/tk0miya/diff-highlight/badges/gpa.svg

Features

  • Add highlights to diff output

  • mercurial extension for diff highlighting

Setup

Use easy_install or pip:

$ sudo easy_install diff-highlight

Or

$ sudo pip 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

Applying to mercurial

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

[extensions]
color =
diff_highlight =

Requirements

  • Python 2.6, 2.7, 3.2, 3.3, 3.4 (mercurial extension works on python 2.x only)

License

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

History

1.2.0 (2016-02-07)

  • Grouping indented hunks

  • Fix #1: highlight if large text appended

  • Fix mercurial extension has been broken since mercurial-3.7.0

1.1.0 (2015-07-12)

  • Drop py24 and py25 support

  • Support git styled diff

1.0.3 (2015-03-30)

  • Ignore IOError on showing result

1.0.2 (2014-06-08)

  • Fix result of diff-highlight commannd is broken when diff-text includes new file (thanks @troter)

1.0.1 (2013-12-22)

  • Fix diff-highlight command failed with python 2.4

1.0.0 (2013-12-22)

  • Add diff-highlight command

  • Support python 2.4, 2.5, 3.2 and 3.3

0.1.0 (2013-12-20)

  • first release

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

diff-highlight-1.2.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

diff_highlight-1.2.0-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file diff-highlight-1.2.0.tar.gz.

File metadata

File hashes

Hashes for diff-highlight-1.2.0.tar.gz
Algorithm Hash digest
SHA256 b33321384e7bbee569b1ac0f4f3d09efef843befc3233a5ef899cf887650a4dc
MD5 292309a521eeee699e2544e106025260
BLAKE2b-256 822c47a06f952a35bded03d229ce1c9f2165490bec5d3e10ab1a26503cc6f54d

See more details on using hashes here.

File details

Details for the file diff_highlight-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for diff_highlight-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e179aec4f9af984bc12bfef3d371ed0d1f96fa33b51827a81579f4b02d53d28
MD5 70ba32aff9604e04d6d5996eb9927a52
BLAKE2b-256 7b142cd3d3e2f1b8e520a57046281b71a6b5b438de52328cb0bfbd06789ed466

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