uncrustify.sh 265 B

123456789101112
  1. #!/usr/bin/env bash
  2. set -e
  3. # Check that you have uncrustify
  4. hash uncrustify
  5. COMMITISH="${1:-master}"
  6. for file in $(git diff --diff-filter=d --name-only $COMMITISH | grep '\.[ch]$'); do
  7. uncrustify -c src/uncrustify.cfg -l C --replace --no-backup "$file"
  8. done