I need a `git format-patch --attach-complete' for RT
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Apr 21, 2010, 12:22 UTC
- Message-ID
- <q2j51dd1af81004210522ze6062110j2033788601e17ce8@mail.gmail.com>
I'm working with a system that doesn't play nice with git-format-patch / git-send-email. When you send mail to RT (e.g. http://rt.perl.org/) it'll always munge the original E-Mail, so inline patches won't work. Here's an example of this gone wrong:
commit f9bcfeacc119e37fd70816a2cb4678fded53e8d1
Author: Ãvar Arnfjörð Bjarmason) (via RT <perlbug-followup@perl.org>
Date: Tue Apr 20 10:58:37 2010 -0700GitHub's mirror is now at mirrors/perl, not github/perl
# New Ticket Created by (Ævar Arnfjörð Bjarmason)
# Please include the string: [perl #74532]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=74532 >
From: Ævar Arnfjörð Bjarmason <avar@cpan.org>The workaround is to:
git format-patch --stdout origin.. > my-patches.patch
*open your mail client*
*attach patch as attachment*
*send to RT*It would be nicer if I could instead:
git format-patch --attach-complete origin..
git send-email *.patchThe --attach option doesn't work with RT because `git am' will take the commit message from the Subject/body of the message. RT messes with that.
Is there some existing workaround for this that I've missed?