]> git.cworth.org Git - notmuch-old/blob - devel/check-notmuch-commit
emacs: update defcustom for notmuch-unthreaded-result-format
[notmuch-old] / devel / check-notmuch-commit
1 #!/bin/sh
2
3 # Usage suggestion:
4 #   git rebase -i --exec devel/check-notmuch-commit origin/master
5
6 set -e
7
8 quick=0
9 case "$1" in
10     -q|-Q|--quick)
11         quick=1
12         ;;
13 esac
14
15 if [ $quick = 0 ]; then
16     make test
17 fi
18
19 unset uconf
20 for file in $(git diff --name-only --diff-filter=AM HEAD^); do
21     case $file in
22         *.c|*.h|*.cc|*.hh)
23             uncrustify --replace -c "${uconf=$(dirname "$0")/uncrustify.cfg}" "$file"
24             ;;
25         *.el)
26             emacs -Q --batch "$file" --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer
27             ;;
28     esac
29 done
30
31 git diff --quiet