Skip to content

Commit

Permalink
readme. easy bypass of diff-so-fancy
Browse files Browse the repository at this point in the history
fixes #22
  • Loading branch information
paulirish committed Feb 10, 2016
1 parent a1311a3 commit 519568c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,23 @@ brew install gnu-sed --with-default-names # Without the default-names flag, you
### Improved colors for the the highlighted bits

`diff-highlight` has default colors that are arguably a little nasty. They'll work fine, but you can try some fancier colors:
```
```shell
git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"
```
You may also want to configure [general diff colors](https://github.com/paulirish/dotfiles/blob/63cb8193b0e66cf80ab6332477f1f52c7fbb9311/.gitconfig#L23-L36).

## Opting-out

Sometimes you will want to bypass diff-so-fancy. Easy enough:

```shell
git --no-pager diff # will avoid the global core.pager hook
```


## Credit

Originated from https://github.com/paulirish/dotfiles/blob/master/bin/diff-so-fancy

0 comments on commit 519568c

Please sign in to comment.