Git diff-so-fancy: Difference between revisions
From wikinotes
(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...") |
No edit summary |
||
Line 1: | Line 1: | ||
Reformats the git-diff headers so that they are MUCH more readable. https://github.com/so-fancy/diff-so-fancy | |||
{{ NOTE | | {{ NOTE | | ||
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. | |||
}} | }} | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| github || https://github.com/so-fancy/diff-so-fancy | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Install = | |||
<blockquote> | |||
<source lang="bash"> | <source lang="bash"> | ||
sudo pacman -S npm | sudo pacman -S npm | ||
Line 18: | Line 25: | ||
git config --global pager.show "diff-so-fancy | less --tabs=1,5 -RFX" | git config --global pager.show "diff-so-fancy | less --tabs=1,5 -RFX" | ||
</source> | </source> | ||
</blockquote><!-- Install --> |
Revision as of 22:29, 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"