File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -671,9 +671,12 @@ sub usage {
671
671
672
672
$out .= " Usage:
673
673
674
- git diff --color | diff-so-fancy # Use d-s-f on one diff
675
- diff-so-fancy --colors # View the commands to set the recommended colors
676
- diff-so-fancy --set-defaults # Configure git-diff to use diff-so-fancy and suggested colors
674
+ git diff --color | diff-so-fancy # Use d-s-f on one diff
675
+ cat diff.txt | diff-so-fancy # Use d-s-f on a diff/patch file
676
+ diff -u one.txt two.txt | diff-so-fancy # Use d-s-f on unified diff output
677
+
678
+ diff-so-fancy --colors # View the commands to set the recommended colors
679
+ diff-so-fancy --set-defaults # Configure git-diff to use diff-so-fancy and suggested colors
677
680
678
681
# Configure git to use d-s-f for *all* diff operations
679
682
git config --global core.pager \" diff-so-fancy | less --tabs=4 -RFX\"\n " ;
You can’t perform that action at this time.
0 commit comments