brew install uncrustify
- 把bin文件夹拷贝到git仓库下面
- 把
bin/hooks/pre-commit
拷贝到.git/hooks/
下面
在git commit
的时候会自动格式化代码
编辑 bin/uncrustify.cfg
修改代码风格
brew install uncrustify
bin/hooks/pre-commit
拷贝到.git/hooks/
下面在git commit
的时候会自动格式化代码
编辑 bin/uncrustify.cfg
修改代码风格