3 # Usage: Run this script and then 'git add -p' to commit the changes
6 if ! git diff --quiet; then
7 echo >&2 "Error: Uncommited changes in worktree"
11 UNCRUSTIFY_CFG=${UNCRUSTIFY_CFG:-$0.cfg}
13 git ls-files|git check-attr --stdin uncrustify|awk -F: '/uncrustify: set$/ {print $1}'|\
15 git show HEAD:$file | (set -x; uncrustify -c $UNCRUSTIFY_CFG -o $file)