Files
oam/knowledge base/diff-highlight.md
2023-06-03 17:11:41 +02:00

922 B

diff-highlight

Pretty diff highlighter with emphasis on changed words.

Table of contents

  1. TL;DR
  2. Further readings
  3. Sources

TL;DR

# Installation.
pip install 'diff-highlight'

In ${HOME}/.gitconfig:

# Set as default.
[core]
    pager = diff-highlight | less

# Apply to individual commands.
[pager]
    log = diff-highlight | less
    show = diff-highlight | less
    diff = diff-highlight | less

Further readings

Sources

All the references in the further readings section, plus the following: