File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -714,9 +714,13 @@ diff -u one.txt two.txt | diff-so-fancy # Use d-s-f on unified diff output
714
714
715
715
diff-so-fancy --colors # View the commands to set the recommended colors
716
716
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`)
717
718
718
719
# 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 " ;
720
724
721
725
return $out ;
722
726
}
You can’t perform that action at this time.
0 commit comments