Skip to content

Commit 8d4ef03

Browse files
committed
update usage for new flag
1 parent 13d3f89 commit 8d4ef03

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

diff-so-fancy

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,9 +714,13 @@ diff -u one.txt two.txt | diff-so-fancy # Use d-s-f on unified diff output
714714
715715
diff-so-fancy --colors # View the commands to set the recommended colors
716716
diff-so-fancy --set-defaults # Configure git-diff to use diff-so-fancy and suggested colors
717+
diff-so-fancy --patch # Use diff-so-fancy in patch mode (interoperable with `git add --patch`)
717718
718719
# Configure git to use d-s-f for *all* diff operations
719-
git config --global core.pager \"diff-so-fancy | less --tabs=4 -RFX\"\n";
720+
git config --global core.pager \"diff-so-fancy | less --tabs=4 -RFX\"
721+
722+
# Configure git to use d-s-f for `git add --patch`
723+
git config --global interactive.diffFilter \"diff-so-fancy --patch\"\n";
720724

721725
return $out;
722726
}

0 commit comments

Comments
 (0)