Update documentation for git diff

This commit is contained in:
HE7086 authored and Martin Nordholts committed 2025-07-15 07:49:46 +02:00
1 parent 7c8e2324ab
commit 9b580c7a98
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -178,7 +178,7 @@ You can combine `bat` with `git diff` to view lines around code changes with pro
highlighting: highlighting:
```bash ```bash
batdiff() { 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). If you prefer to use this as a separate tool, check out `batdiff` in [`bat-extras`](https://github.com/eth-p/bat-extras).
+1 -1
View File
@@ -163,7 +163,7 @@ git show v0.6.0:src/main.rs | bat -l rs
볼 수 있습니다: 볼 수 있습니다:
```bash ```bash
batdiff() { batdiff() {
git diff --name-only --diff-filter=d | xargs bat --diff git diff --name-only --diff-filter=d -z | xargs --null bat --diff
} }
``` ```
이것을 별도의 도구로 쓰고 싶다면 이것을 별도의 도구로 쓰고 싶다면
+1 -1
View File
@@ -150,7 +150,7 @@ git show v0.6.0:src/main.rs | bat -l rs
```bash ```bash
batdiff() { batdiff() {
git diff --name-only --diff-filter=d | xargs bat --diff git diff --name-only --diff-filter=d -z | xargs --null bat --diff
} }
``` ```