File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ You can combine `bat` with `git diff` to view lines around code changes with pro
178
178
highlighting:
179
179
``` bash
180
180
batdiff () {
181
- git diff --name-only --relative --diff-filter=d | xargs bat --diff
181
+ git diff --name-only --relative --diff-filter=d -z | xargs --null bat --diff
182
182
}
183
183
```
184
184
If you prefer to use this as a separate tool, check out ` batdiff ` in [ ` bat-extras ` ] ( https://github.com/eth-p/bat-extras ) .
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ git show v0.6.0:src/main.rs | bat -l rs
163
163
볼 수 있습니다:
164
164
``` bash
165
165
batdiff () {
166
- git diff --name-only --diff-filter=d | xargs bat --diff
166
+ git diff --name-only --diff-filter=d -z | xargs --null bat --diff
167
167
}
168
168
```
169
169
이것을 별도의 도구로 쓰고 싶다면
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ git show v0.6.0:src/main.rs | bat -l rs
150
150
151
151
``` bash
152
152
batdiff () {
153
- git diff --name-only --diff-filter=d | xargs bat --diff
153
+ git diff --name-only --diff-filter=d -z | xargs --null bat --diff
154
154
}
155
155
```
156
156
You can’t perform that action at this time.
0 commit comments