Re: [PATCH] send-email: Use To: headers in patch files
On Tue, Sep 28, 2010 at 08:02, Stephen Boyd <bebarino@gmail.com> wrote:
Show 9 quoted lines
> +test_expect_success $PREREQ 'patches To headers are used by default' '
> + patch=`git format-patch -1 --to="bodies@example.com"` &&
> + git send-email \
> + --dry-run \
> + --from="Example <nobody@example.com>" \
> + --smtp-server relay.example.com \
> + $patch >stdout &&
> + grep "RCPT TO:<bodies@example.com>" stdout
> +'
Why not:
git format-patch -1 --to="bodies@example.com" &&
test_when_finished "rm *.patch" &&
git send-email [...] *.patch >out &&
[...]