tools/validate-commit.py: post-commit hook to check for commit issues
authorPeter Wu <peter@lekensteyn.nl>
Tue, 16 Oct 2018 15:29:47 +0000 (17:29 +0200)
committerAnders Broman <a.broman58@gmail.com>
Thu, 18 Oct 2018 04:51:00 +0000 (04:51 +0000)
commit0f3a4db65713c7425f7825aca0f7c0b81823a893
treec227a3473d41e392f400df5cf0e4e4c4bc10f975
parent58c98540b3329057787a66f626d9092213a54359
tools/validate-commit.py: post-commit hook to check for commit issues

During review we might overlook issues with the commit messages. Some
commits somehow ended up IP addresses or local VM hostnames as author
address. Automate detecting such issues as well as other whitespace
issues with the commit message itself (detected by commit-msg).

Note: when installing as post-commit hook, it will also be executed when
doing things like 'git reset --hard'.

Change-Id: Ic638e7f51d89277ac359c04764effb69eb4f2fa1
Reviewed-on: https://code.wireshark.org/review/30225
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
tools/validate-commit.py [new file with mode: 0755]