[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Findutils-patches] [PATCH 1/2] Explain that before reporting a prob
From: |
James Youngman |
Subject: |
Re: [Findutils-patches] [PATCH 1/2] Explain that before reporting a problem, you should try the current |
Date: |
Sat, 23 Jun 2007 17:17:03 +0100 |
On 6/23/07, Bob Proulx <address@hidden> wrote:
> 5. There is also a third git repository which is also local here, in
> which I make changes on a private branch. I then format the commits
> and mail them to address@hidden for review. I have a
> script for doing this, so far it seems cumbersome but painless.
Using git-format-patch?
Yes, with this script:
#! /bin/sh
# To prepare input for this program, use
# git-format-patch -n --thread --ignore-if-in-upstream
--patch-with-stat master..HEAD
if [[ $# -eq 0 ]] ; then
echo "You specified no files" >&2
exit 1
else
for filename ; do
echo "Mailing $filename"
sed -e '
/From: / {
a\
To: address@hidden
}' < "$filename" | /usr/sbin/sendmail -t
done
fi
If I don't use the script and just fed the files to "mail
address@hidden", mailman sees the resulting messages have
no To: header and forces them to be moderated.
I tried doing this automatically with
git-config --add format.headers '"To: address@hidden"'
... but that made git-format-patch add the To: header in between the
start of the Subject: header and its continuation line. Sigh.
James.