Better diff highlighting in git

A couple of weeks ago I introduced Semantic Line Breaks as a way to improve the readability of richtext formats, like Markdown. One reader, Joel Clermont, wrote back with an alternative solution: diff-highlight. And not only did he write to tell me about it, but he wrote a post explaining it all!

I also came upon diff-so-fancy which expands this capability even more, optionally providing:

  • Prettier hunk indicators
  • pretty-formatting the diff headers for each file
  • Removing the leading + or - sign from each line, which are redundant when using colors
  • customizable colors
  • and more
Share this