1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-06-15 12:55:58 +01:00

Add --relative to batdiff in README.md ()

This commit is contained in:
Tejinder Singh
2022-05-05 14:27:52 -04:00
committed by GitHub
parent 0851bbbb28
commit 52bab63e18

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