unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob d48e70f6a2a6d42e1dcf670816f1fee0a00c9222 916 bytes (raw)
name: devel/check-series 	 # 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
33
 
#/bin/sh

# Usage: check-series [upstream-commit]

# Checks each commit in a patch series (topic branch) by running the
# script devel/check-commit. If check-commit fails (exits with
# non-zero status), the user is left in the middle of a git rebase, and
# can fix the commit, e.g. using git commit --amend, followed by
# "git rebase --continue". If all else fails, "git rebase --abort" should
# get you back to where you started.
#
# NOTE: this runs "make test" many times, so it can take a while.
#

trap cleanup EXIT

cleanup () {
    if [ -n "$tmpdir" ]; then
	rm -rf $tmpdir
    fi
}

upstream=master
if [ -n "$1" ]; then
    upstream="$1"
fi

# make sure we always run the most recent version of check-commit
# in particular cope with it going away.
tmpdir=$(mktemp -d)
cp devel/check-commit $tmpdir

GIT_SEQUENCE_EDITOR="perl -pi -e 's,^\s*([^#\s].*)$,\1\nexec $tmpdir/check-commit,'" git rebase -i $upstream

debug log:

solving d48e70f ...
found d48e70f in https://yhetil.org/notmuch/1356356853-25746-1-git-send-email-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/1356356853-25746-1-git-send-email-david@tethera.net/
diff --git a/devel/check-series b/devel/check-series
new file mode 100755
index 0000000..d48e70f

Checking patch devel/check-series...
Applied patch devel/check-series cleanly.

index at:
100755 d48e70f6a2a6d42e1dcf670816f1fee0a00c9222	devel/check-series

(*) 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).