Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion doc/README-ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```
이것을 별도의 도구로 쓰고 싶다면
Expand Down
2 changes: 1 addition & 1 deletion doc/README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down
Loading