diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-17 02:27:13 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-17 02:33:26 +0100 |
commit | 50f04394908fe308a421b360951b1f73b00363ee (patch) | |
tree | d337ef464efc41b9a293bbf5b6e617f81dc9b14e /bisect.h | |
parent | diff: add -I<regex> that ignores matching changes (diff) | |
download | git-50f04394908fe308a421b360951b1f73b00363ee.tar.xz git-50f04394908fe308a421b360951b1f73b00363ee.zip |
diff: correct interaction between --exit-code and -I<pattern>
Just like "git diff -w --exit-code" should exit with 0 when ignoring
whitespace differences results in no changes shown, if ignoring
certain changes with "git diff -I<pattern> --exit-code" result in an
empty patch, we should exit with 0.
The test suite did not cover the interaction between "--exit-code"
and "-w"; add one while adding a new test for "--exit-code" + "-I".
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.h')
0 files changed, 0 insertions, 0 deletions