make: add clang-format prepare-commit-msg hook

Hardware / Coreboot - Ronald G. Minnich [gmail.com] - 1 August 2018 18:03 EDT

To install this hook, run make install-git-commit-clangfmt

This will install a pre-commit-msg hook that runs clang-format on all .c and .h files that are staged.

ff22b6aca6 make: add clang-format prepare-commit-msg hook
Makefile.inc | 3 +++
util/scripts/prepare-commit-msg.clang-format | 13 +++++++++++++
2 files changed, 16 insertions(+)

Upstream: review.coreboot.org


  • Share