3 ms·
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
by apas 6y ago
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-highlight https://github.com/git/git/tree/master/contrib/diff-highligh...
- kyzn 6y agoI love that too! My config is almost the same, but I have "pager = ..." under "[core]"
- mookid11 6y agoSort 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 https://github.com/mookid/diffr