<commit_before># diff-so-fancy

diff-so-fancy builds on the good-lookin' output of diff-highlight to upgrade
your diffs' appearances.

* Output will not be in standard patch format, but will be readable.
* No pesky `+` or `-` at line-stars, making for easier copy-paste.

## Screenshot

*`git diff` vs `git diff --color | diff-highlight | diff-so-fancy`*

![diff-highlight vs diff-so-fancy](https://cloud.githubusercontent.com/assets/39191/10000682/8e849130-6052-11e5-9bd9-bd4505cd24d6.png)

## Usage

```shell
git diff --color | diff-highlight | diff-so-fancy
```

Add to .gitconfig so all `git diff` uses it.
```shell
git config --global core.pager "diff-highlight | diff-so-fancy | less --tabs=1,5 -R"
```

## Install

```shell
npm install -g diff-so-fancy
```
This will install and link the `diff-so-fancy` and `diff-highlight` scripts.

### GNU sed.
On Mac, install it with Homebrew.
```shell
brew install gnu-sed --with-default-names  # You'll have to change below to `gsed` otherwise
```<commit_msg>readme: manual install<commit_after># diff-so-fancy

diff-so-fancy builds on the good-lookin' output of diff-highlight to upgrade
your diffs' appearances.

* Output will not be in standard patch format, but will be readable.
* No pesky `+` or `-` at line-stars, making for easier copy-paste.

## Screenshot

*`git diff` vs `git diff --color | diff-highlight | diff-so-fancy`*

![diff-highlight vs diff-so-fancy](https://cloud.githubusercontent.com/assets/39191/10000682/8e849130-6052-11e5-9bd9-bd4505cd24d6.png)

## Usage

```shell
git diff --color | diff-highlight | diff-so-fancy
```

Add to .gitconfig so all `git diff` uses it.
```shell
git config --global core.pager "diff-highlight | diff-so-fancy | less --tabs=1,5 -R"
```

## Install

For convenience, the recommended installation is via NPM:
```shell
npm install -g diff-so-fancy
```
This will install and link the `diff-so-fancy` and `diff-highlight` scripts.

### Manual Install
If you want, you can choose to install manually:

* Grab the two scripts (`diff-highlight` and `diff-so-fancy`) via either downloading or cloning the repo.
* Place them in a location that is in your `PATH`.
* Set up the git `core.pager` config, as described above

Note: The `diff-highlight` depenency is an [official git-contrib script](https://github.com/git/git/tree/master/contrib/diff-highlight), duplicated here for convenience.

### GNU sed.
On Mac, install it with Homebrew.
```shell
brew install gnu-sed --with-default-names  # You'll have to change below to `gsed` otherwise
```
{'fraction_non_alphanumeric': 0.13338595106550907, 'fraction_numerical': 0.02999210734017364, 'mean_word_length': 4.049800796812749, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3765189', 'n_tokens_mistral': 920, 'n_tokens_neox': 834, 'n_words': 289}