You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# diff-so-fancy [](https://circleci.com/gh/so-fancy/diff-so-fancy)[](https://travis-ci.org/so-fancy/diff-so-fancy)[](https://ci.appveyor.com/project/stevemao/diff-so-fancy/branch/master)
2
2
3
-
`diff-so-fancy` strives to make your diff's**human** readable instead of machine readable. This helps improve code quality and help you spot defects faster.
3
+
`diff-so-fancy` strives to make your diffs**human** readable instead of machine readable. This helps improve code quality and helps you spot defects faster.
4
4
5
5
6
6
## Screenshot
@@ -11,21 +11,23 @@ Vanilla `git diff` vs `git` and `diff-so-fancy`
11
11
12
12
## Install
13
13
14
-
Installation is as simple as downloading the [diff-so-fancy](https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy) script to a directory in your path.
14
+
Installation is as simple as downloading the [`diff-so-fancy`](https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy) script to a directory in your path.
15
15
Windows users may need to install [MinGW](https://sourceforge.net/projects/mingw/files/) or the [Windows subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/install-win10).
16
16
17
17
`diff-so-fancy` is also available from NPM, Nix, brew, and as a package on Arch Linux.
18
18
19
19
## Usage
20
20
21
21
Configure git to use `diff-so-fancy` for all diff output:
22
+
22
23
```shell
23
24
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
24
25
```
25
26
26
27
### Improved colors for the highlighted bits
27
28
28
29
The default Git colors are not optimal. The colors used for the screenshot above were:
By default the separator for the file header uses Unicode line drawing characters. If this is causing output errors on your terminal set this to `false` to use ASCII characters instead. (Default: true)
75
+
By default, the separator for the file header uses Unicode line-drawing characters. If this is causing output errors on your terminal, set this to `false` to use ASCII characters instead. (Default: true)
Pull requests are quite welcome, and should target the [`next` branch](https://github.com/so-fancy/diff-so-fancy/tree/next). We are also looking for any feedback or ideas on how to make diff-so-fancy even *fancier*.
91
+
Pull requests are quite welcome, and should target the [`next` branch](https://github.com/so-fancy/diff-so-fancy/tree/next). We are also looking for any feedback or ideas on how to make `diff-so-fancy` even *fancier*.
0 commit comments