Also, I found that there’s a git-clang-format script that comes with all this. 
E.g.

heimdall (21:25) 368/2 $ git clang-format --commit HEAD^
changed files:
    cmd/traffic_cop/traffic_cop.cc


This would run clang-format against all the files from the last commit, and 
“fix them". It has a bunch of other options too, of course. It wouldn’t be git 
otherwise...

— Leif

Reply via email to