on master help sign in
Add `--relative` to `batdiff` in README.md (#2172)
commit52bab63e188b3dbd680c5e50054398fe61521a2c authorTejinder Singh <35347971+torqu3e@users.noreply.github.com> dateThu 5 May 2022, 14:27 (5 years ago) parent0851bbb
1 file changed+1−1
README.md+1−1
README.md+1−1
@@ -171,7 +171,7 @@ You can combine `bat` with `git diff` to view lines around code changes with pro
171171highlighting:
172172```bash
173173batdiff() {
174− git diff --name-only --diff-filter=d | xargs bat --diff
174+ git diff --name-only --relative --diff-filter=d | xargs bat --diff
175175}
176176```
177177If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).