Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is neat. In a similar fashion I'm a big fan of diff-highlight, [0] which post-processes the git diff and highlights with color the differing segments. It's super lightweight and part of the official git repo; I've saved it as a standalone #!/bin/perl in my $PATH and then included it in my .gitconfig:

  [pager]
   log = /Users/user/.bin/diff-highlight | less
   show = /Users/user/.bin/diff-highlight | less
   diff = /Users/user/.bin/diff-highlight | less
[0]: https://github.com/git/git/tree/master/contrib/diff-highligh...


Sort of related: as I never made diff-highlight work correctly on Windows, I wrote diffr[0] which goes a little bit behond what diff-highlight does.

[0]: https://github.com/mookid/diffr


I love that too! My config is almost the same, but I have "pager = ..." under "[core]"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: