unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 99ed229d96336a941ba573f43f88809b247a2940 574 bytes (raw)
name: devel/check-notmuch-commit 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
#!/bin/sh

# Usage suggestion:
#   git rebase -i --exec devel/check-notmuch-commit origin/master

set -e

quick=0
case "$1" in
    -q|-Q|--quick)
        quick=1
        ;;
esac

if [ $quick = 0 ]; then
    make test
fi

unset uconf
for file in $(git diff --name-only --diff-filter=AM HEAD^); do
    case $file in
	*.c|*.h|*.cc|*.hh)
            uncrustify --replace -c "${uconf=$(dirname "$0")/uncrustify.cfg}" "$file"
	    ;;
	*.el)
	    emacs -Q --batch "$file" --eval '(indent-region (point-min) (point-max) nil)' -f save-buffer
	    ;;
    esac
done

git diff --quiet


debug log:

solving 99ed229d ...
found 99ed229d in https://yhetil.org/notmuch/20211010115449.1238093-1-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/20211010115449.1238093-1-david@tethera.net/
diff --git a/devel/check-notmuch-commit b/devel/check-notmuch-commit
new file mode 100755
index 00000000..99ed229d

Checking patch devel/check-notmuch-commit...
1:38: new blank line at EOF.
+
Applied patch devel/check-notmuch-commit cleanly.
warning: 1 line adds whitespace errors.

index at:
100755 99ed229d96336a941ba573f43f88809b247a2940	devel/check-notmuch-commit

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).