You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Leif Hedstrom <zw...@apache.org> on 2016/08/31 20:20:03 UTC
clang-format
Hi all,
just a gentle reminder that clang-format is required for all contributions. We see a fair amount of failed PR builds, which is fine as long as we catch them. But really, it’s pretty easy to avoid those completely. I’d recommend
1) Put the pre-commit script into your .git/hooks directory.
$ cp tools/git/pre-commit .git/hooks
2) Make a habit to always run this:
$ make -j clang-format
Cheers,
— leif
P.s
I just renamed the pre-commit hook, moving it to tools/git.