1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-02 11:22:30 +01:00

Update documentation for git diff

This commit is contained in:
HE7086
2024-08-14 06:56:36 +02:00
committed by Martin Nordholts
parent 7c8e2324ab
commit 9b580c7a98
3 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ You can combine `bat` with `git diff` to view lines around code changes with pro
highlighting:
```bash
batdiff() {
git diff --name-only --relative --diff-filter=d | xargs bat --diff
git diff --name-only --relative --diff-filter=d -z | xargs --null 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).