Print git-diff when pre-commit fails 97/90397/2
authorThanh Ha <zxiiro@gmail.com>
Thu, 11 Jun 2020 14:13:02 +0000 (10:13 -0400)
committerJamo Luhrsen <jluhrsen@gmail.com>
Fri, 26 Jun 2020 16:47:47 +0000 (16:47 +0000)
commitdf095744c4197e89b297b4782e5cf869d2138b1f
treef8d2dcf1d6059a8160d70fcd418b407cc134a804
parentc99a9df69c4e7472c6836c8aa0a32030e237896f
Print git-diff when pre-commit fails

When pre-commit fails and automatically fixes issues for us in Jenkins
we are not able to see what pre-commit automatically fixed. Adding
--show-diff-on-failure makes pre-commit perform a git-diff immediately
after failing to ensure more useful output is printed to inform the
contributor what changes are needed to pass the check.

Change-Id: I7d97b823e401bb737564a3936afa08085dcb6975
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
tox.ini