diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-12-05 21:26:09 -0500 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-12-05 21:26:09 -0500 |
commit | 1c3e7baf0f96bc0ff07da8d0aab9b1f2d15b02d2 (patch) | |
tree | d03f5bb2711c8c7a3f6958fde1557c67d442079d /README.md | |
parent | f68fbc7b83e4c0806dd8039fb65b35dcecc3c527 (diff) |
Mention unified diff handling in README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,6 @@ [![Build Status](https://travis-ci.com/dandavison/delta.svg?branch=master)](https://travis-ci.com/dandavison/delta) -## A syntax-highlighting pager for git +## A syntax-highlighting pager for git and diff output Delta brings language syntax highlighting, within-line insertion/deletion detection, and restructured diff output to git on the command line. Here's an example of `git show` output with git configured to use delta as its pager: @@ -15,6 +15,8 @@ Delta brings language syntax highlighting, within-line insertion/deletion detect | multiple insertion/deletions detected per line | ✅ | ❌ | ❌ | ✅ | | matching of unequal numbers of changed lines | ✅ | ❌ | ❌ | ❌ | +In addition, delta handles traditional unified diff output. + ## Installation Executables: [Linux](https://github.com/dandavison/delta/releases/download/0.0.15/delta-0.0.15-x86_64-unknown-linux-musl.tar.gz) | [MacOS](https://github.com/dandavison/delta/releases/download/0.0.15/delta-0.0.15-x86_64-apple-darwin.tar.gz) | [Windows](https://github.com/dandavison/delta/releases/download/0.0.15/delta-0.0.15-x86_64-pc-windows-msvc.zip) | [All](https://github.com/dandavison/delta/releases) @@ -48,6 +50,10 @@ All git commands that display diff output should now display syntax-highlighted - `git stash show -p` - `git reflog -p` +Delta also handles unified diff output: +``` +diff -u a.txt b.txt | delta +``` <br> |