on master help sign in
Add reference to batdiff
commitdade4cc6f36075e6a9872220cb640be049382e6c authorDavid Peter <sharkdp@users.noreply.github.com> dateThu 29 Oct 2020, 19:37 (6 years ago) parentc747ac1
1 file changed+4−1
README.md+4−1
README.md+4−1
@@ -136,8 +136,11 @@ git show v0.6.0:src/main.rs | bat -l rs
136136You can combine `bat` with `git diff` to view lines around code changes with proper syntax
137137highlighting:
138138```bash
139−git diff --name-only --diff-filter=d | xargs bat --diff
139+batdiff() {
140+ git diff --name-only --diff-filter=d | xargs bat --diff
141+}
140142```
143+If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
141144
142145If you are looking for more support for git and diff operations, check out [`delta`](https://github.com/dandavison/delta).
143146