Git diff-so-fancy: Difference between revisions

From wikinotes
No edit summary
No edit summary
 
Line 4: Line 4:
I've stopped using this globally. It wasn't working consistently everywhere.
I've stopped using this globally. It wasn't working consistently everywhere.
Instead, I really like [[Git config#diff-highlight]], which ships with git.
Instead, I really like [[Git config#diff-highlight]], which ships with git.
}}
}}



Latest revision as of 22:30, 29 October 2022

Reformats the git-diff headers so that they are MUCH more readable. https://github.com/so-fancy/diff-so-fancy

NOTE:

I've stopped using this globally. It wasn't working consistently everywhere. Instead, I really like Git config#diff-highlight, which ships with git.

Documentation

github https://github.com/so-fancy/diff-so-fancy

Install

sudo pacman -S npm
sudo npm install -g diff-so-fancy

git config --global pager.diff "diff-so-fancy | less --tabs=1,5 -RFX"
git config --global pager.show "diff-so-fancy | less --tabs=1,5 -RFX"