author | Wincent Colaiuta <win@wincent.com> | |
Thu, 13 Dec 2007 20:24:52 +0000 (21:24 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 14 Dec 2007 07:05:42 +0000 (23:05 -0800) | ||
commit | 62c64895cfcf3bbf34969a69fa96a631f7d5b14e | |
tree | ba4176915a9320356f245f401913d2bfa9992b43 | tree | snapshot |
parent | 913b45f51b151d8e29f86df67d3e10853d831470 | commit | diff |
"diff --check" should affect exit status
"git diff" has a --check option that can be used to check for whitespace
problems but it only reported by printing warnings to the
console.
Now when the --check option is used we give a non-zero exit status,
making "git diff --check" nicer to use in scripts and hooks.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"git diff" has a --check option that can be used to check for whitespace
problems but it only reported by printing warnings to the
console.
Now when the --check option is used we give a non-zero exit status,
making "git diff --check" nicer to use in scripts and hooks.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>