Show example of how to configure git to use diffr by default?
jedahan opened this issue · 3 comments
jedahan commented
I was able to use GIT_PAGER=diffr
but then its not actually paging. Would be cool to see some examples of how to do this.
waldyrious commented
@jedahan are you perhaps looking for this?
I prefer setting configs via the command line than by editing the gitconfig file, so here's how I did it in my experiments:
git config --global core.pager 'diffr | less -R'
or, to use something more elaborate:
git config --global core.pager 'diffr --colors refine-removed:foreground:black:nobold --colors refine-added:foreground:black:nobold | less -RXF'
I agree that having examples like these in the README would be helpful.
waldyrious commented
jedahan commented
I am blind; yes that works, thank you.