Skip to content

Commit b18ec02

Browse files
Add some usage text to help address #354
1 parent 4910572 commit b18ec02

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

diff-so-fancy

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,12 @@ sub usage {
671671

672672
$out .= "Usage:
673673
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
677680
678681
# Configure git to use d-s-f for *all* diff operations
679682
git config --global core.pager \"diff-so-fancy | less --tabs=4 -RFX\"\n";

0 commit comments

Comments
 (0)