unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 98a19a64050f02038e260008606e46c73b3e6aa2 381 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
 
#!/bin/sh

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

set -e
make test
for file in $(git diff --name-only HEAD^); do
    case $file in
	*.c|*.h|*.cc|*.hh)
            uncrustify --replace -c $(dirname "$0")/uncrustify.cfg "$file"
	    ;;
	*.el)
            $(dirname "$0")/reindent-elisp "$file"
	    ;;
    esac
done

git diff --quiet


debug log:

solving 98a19a64 ...
found 98a19a64 in https://yhetil.org/notmuch/20210628140810.1842069-1-david@tethera.net/

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

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

index at:
100755 98a19a64050f02038e260008606e46c73b3e6aa2	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).