From 03e1ac37c9e03e59fba5138dc6e90f47f87bf86e Mon Sep 17 00:00:00 2001 From: HE7086 Date: Wed, 14 Aug 2024 06:56:36 +0200 Subject: [PATCH] Update documentation for git diff --- README.md | 2 +- doc/README-ko.md | 2 +- doc/README-zh.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 016fe834..4bc3db11 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/doc/README-ko.md b/doc/README-ko.md index 8a10fd68..ac3f7cf8 100644 --- a/doc/README-ko.md +++ b/doc/README-ko.md @@ -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 } ``` 이것을 별도의 도구로 쓰고 싶다면 diff --git a/doc/README-zh.md b/doc/README-zh.md index 007afb3e..32170ec8 100644 --- a/doc/README-zh.md +++ b/doc/README-zh.md @@ -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 } ```