summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Peter <sharkdp@users.noreply.github.com>2020-10-29 19:37:12 +0100
committerGitHub <noreply@github.com>2020-10-29 19:37:12 +0100
commitdade4cc6f36075e6a9872220cb640be049382e6c (patch)
tree21cfcad5ef774a99e09b9150ee9f49dd6a9f9aec
parentc747ac181d1843c30891f14bafbbd0e27478e0c2 (diff)
Add reference to batdiff
-rw-r--r--README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 617f6842..ba34eea6 100644
--- a/README.md
+++ b/README.md
@@ -136,8 +136,11 @@ git show v0.6.0:src/main.rs | bat -l rs
You can combine `bat` with `git diff` to view lines around code changes with proper syntax
highlighting:
```bash
-git diff --name-only --diff-filter=d | xargs bat --diff
+batdiff() {
+ git diff --name-only --diff-filter=d | xargs bat --diff
+}
```
+If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).