I need a `git format-patch --attach-complete' for RT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
    Date:   Tue Apr 20 10:58:37 2010 -0700

        GitHub'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@xxxxxxxx>

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 *.patch

The --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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]