I hope this fixes my pull request process indefinitely, i.e. a ‘taco bell’ script:
#!/usr/bin/env bash
GIT_URL=git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
BASE=$1
VERSION=$2
OPTIONS=$3 # for git send-email, e.g. --dry-run
git request-pull $BASE $GIT_URL tpmdd-$VERSION > pull-request-$VERSION.txt
ex pull-request-$VERSION.txt <<EOF
1 insert
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Jarkko Sakkinen <jarkko@kernel.org>, Peter Huewe <peterhuewe@gmx.de>,
Jason Gunthorpe <jgg@ziepe.ca>, David Howells <dhowells@redhat.com>,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org,
Lino Sanfilippo <l.sanfilippo@kunbus.com>
Subject: [GIT PULL] tpmdd changes for $VERSION
.
xit
EOF
git send-email \
--envelope-sender=jarkko@kernel.org \
--from="Jarkko Sakkinen <jarkko@kernel.org>" \
--to="Linus Torvalds <torvalds@linux-foundation.org>" \
--subject="[GIT PULL] tpmdd changes for $VERSION" \
$OPTIONS \
pull-request-$VERSION.txt
References:
realized with this that you can use ex
as more sane version of m4
, e.g. as an ad-hoc template engine :-)