author | Larry D'Anna <larry@elder-gods.org> | |
Tue, 16 Feb 2010 06:55:21 +0000 (01:55 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 16 Feb 2010 07:04:34 +0000 (23:04 -0800) | ||
commit | 6977c250ac6cacb5ee441bff832fdeab4d0cd8f9 | |
tree | 65395c21da0f7326b50da68e05a6d2db78cd182b | tree | snapshot |
parent | b599672316ae0e0cf827e5e2cd6d3bb403d7b8cd | commit | diff |
git diff --quiet -w: check and report the status
The option -w tells the diff machinery to inspect the contents to set the
exit status, instead of checking the blob object level difference alone.
However, --quiet tells the diff machinery not to look at the contents, which
means DIFF_FROM_CONTENTS has no chance to inspect the change.
Work it around by calling diff_flush_patch() with output sent to /dev/null.
Signed-off-by: Larry D'Anna <larry@elder-gods.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The option -w tells the diff machinery to inspect the contents to set the
exit status, instead of checking the blob object level difference alone.
However, --quiet tells the diff machinery not to look at the contents, which
means DIFF_FROM_CONTENTS has no chance to inspect the change.
Work it around by calling diff_flush_patch() with output sent to /dev/null.
Signed-off-by: Larry D'Anna <larry@elder-gods.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | diff | blob | history |