Git diff-so-fancy

From wikinotes
Revision as of 22:25, 29 October 2022 by Will (talk | contribs) (Created page with "{{ NOTE | I've stopped using this globally. It wasn't working consistently everywhere. I'd prefer to a) use something that is entirely python, bash, or compiled b) only use it on dev machines It's a very good idea though. }} https://github.com/so-fancy/diff-so-fancy Reformats the git-diff headers so that they are MUCH more readable. https://github.com/so-fancy/diff-so-fancy <source lang="bash"> sudo pacman -S npm sudo npm install -g diff-so-fancy git config --global...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

NOTE:

I've stopped using this globally. It wasn't working consistently everywhere. I'd prefer to

a) use something that is entirely python, bash, or compiled b) only use it on dev machines

It's a very good idea though.

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

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

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"