neovim/scripts/uncrustify.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
265 B
Bash
Raw Normal View History

2021-05-28 12:45:34 -07:00
#!/usr/bin/env bash
set -e
# Check that you have uncrustify
hash uncrustify
COMMITISH="${1:-master}"
for file in $(git diff --diff-filter=d --name-only $COMMITISH | grep '\.[ch]$'); do
uncrustify -c src/uncrustify.cfg -l C --replace --no-backup "$file"
done