From 33be6cf51acf74e623fb3c4e287f7aebbedf5c09 Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Sun, 9 Jun 2024 09:38:24 +0200 Subject: t4020: test exit code with external diffs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add tests to check the exit code of git diff with its options --quiet and --exit-code when using an external diff program. Currently we cannot tell whether it found significant changes or not. While at it, document briefly that --quiet turns off execution of external diff programs because that behavior surprised me for a moment while writing the tests. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- Documentation/diff-options.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'Documentation/diff-options.txt') diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt index c7df20e571..6b73daf540 100644 --- a/Documentation/diff-options.txt +++ b/Documentation/diff-options.txt @@ -820,6 +820,7 @@ ifndef::git-log[] --quiet:: Disable all output of the program. Implies `--exit-code`. + Disables execution of external diff helpers. endif::git-log[] endif::git-format-patch[] -- cgit v1.3