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.

drone.io CI build status Latest PyPI version Number of PyPI downloads

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.4, 2.5, 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.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.0.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

diff_highlight-1.0.2-py2.py3-none-any.whl (9.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for diff-highlight-1.0.2.tar.gz
Algorithm Hash digest
SHA256 88fd94a8dfa4c87c7c3ee2421c8674377989826aba40c8b223ef5e4faf01aace
MD5 81711053e76e33d985e14f3666d0c13e
BLAKE2b-256 3d400047d735e6c7bf8af100e902d744e32c814491af9948394ec2d4be6fb595

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for diff_highlight-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 38a4d3f26023bec934a22e9e002a6f27ff7dfc2c5357622764e5d7cdc4dbeecd
MD5 90c79a9feff50e1583b4e1ad3d8e3c74
BLAKE2b-256 ed5b935faab85b2a094664e5bc6a460970958004903dffd235e55c1cbc03c291

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