Update documentation for git diff

This commit is contained in:
HE7086 2024-08-14 06:56:36 +02:00
parent b662fec214
commit 03e1ac37c9
No known key found for this signature in database
GPG Key ID: 91869A806C6DB6CD
3 changed files with 3 additions and 3 deletions

View File

@ -181,7 +181,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).

View File

@ -163,7 +163,7 @@ git show v0.6.0:src/main.rs | bat -l rs
볼 수 있습니다:
```bash
batdiff() {
git diff --name-only --diff-filter=d | xargs bat --diff
git diff --name-only --diff-filter=d -z | xargs --null bat --diff
}
```
이것을 별도의 도구로 쓰고 싶다면

View File

@ -150,7 +150,7 @@ git show v0.6.0:src/main.rs | bat -l rs
```bash
batdiff() {
git diff --name-only --diff-filter=d | xargs bat --diff
git diff --name-only --diff-filter=d -z | xargs --null bat --diff
}
```