1 Star 1 Fork 1

huiker/ardupilot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
reformat.sh 700 Bytes
一键复制 编辑 原始数据 按行查看 历史
Pat Hickey 提交于 2012-08-16 17:49 . better commit message for uncrustify
#!/bin/bash
DIR=$1
COMMIT=$2
function do_commit {
if [ $COMMIT == 1 ] ;then
git commit $1 --author="uncrustify <pat@moreproductive.org>" \
--message="uncrustify $1";
fi
}
function format_cpp {
echo 'format_cpp' $1
uncrustify --no-backup -c uncrustify_cpp.cfg $1
do_commit $1
}
function format_header {
echo 'format_header' $1
uncrustify --no-backup -c uncrustify_headers.cfg $1
do_commit $1
}
PDEFILES=`find $DIR -name '*.pde' -print`
CPPFILES=`find $DIR -name '*.cpp' -print`
CFILES=`find $DIR -name '*.c' -print`
HFILES=`find $DIR -name '*.h' -print`
for f in $PDEFILES $CPPFILES $CFILES; do
format_cpp $f
done
for f in $HFILES; do
format_header $f
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huiker/ardupilot.git
git@gitee.com:huiker/ardupilot.git
huiker
ardupilot
ardupilot
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385