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 @@ -181,7 +181,7 @@ You can combine `bat` with `git diff` to view lines around code changes with pro
181181highlighting:
182182``` bash
183183batdiff () {
184- git diff --name-only --relative --diff-filter=d | xargs bat --diff
184+ git diff --name-only --relative --diff-filter=d -z | xargs --null bat --diff
185185}
186186```
187187If 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
163163볼 수 있습니다:
164164``` bash
165165batdiff () {
166- git diff --name-only --diff-filter=d | xargs bat --diff
166+ git diff --name-only --diff-filter=d -z | xargs --null bat --diff
167167}
168168```
169169이것을 별도의 도구로 쓰고 싶다면
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
150150
151151``` bash
152152batdiff () {
153- git diff --name-only --diff-filter=d | xargs bat --diff
153+ git diff --name-only --diff-filter=d -z | xargs --null bat --diff
154154}
155155```
156156
You can’t perform that action at this time.
0 commit comments