On 6/23/07, Bob Proulx <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
}' < "$filename" | /usr/sbin/sendmail -t
done
fi
If I don't use the script and just fed the files to "mail
[EMAIL PROTECTED]", 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: [EMAIL PROTECTED]"'
... but that made git-format-patch add the To: header in between the
start of the Subject: header and its continuation line. Sigh.
James.
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils