From: Mike McCormack <mike@codeweavers.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: PATCH: Allow format-patch to attach patches
Date: Tue, 07 Mar 2006 12:20:38 +0900 [thread overview]
Message-ID: <440CFC06.9080901@codeweavers.com> (raw)
In-Reply-To: <7vpskz5aqh.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
> The only two and half minor issues I might have about this are:
>
> (1) is the type text/x-patch appropriate?
I'm no expert on MIME types, unfortunately. Maybe text/x-diff makes
more sense? A few different projects require one of those two types
for diffs sent as attachments. My main concern is that mailers can
recognize that the attachment is text, then displayed with the message
so that people can see the patch without opening the attachment.
> (2) is it possible to cheaply come up with a safe mime-magic,
> instead of a hardcoded long string and hope it does not
> clash?
I agree that using a hardcoded long string isn't that great. Reading
all of the "diff-tree -p" output seems a bit expensive. How about using
some part of the patch's SHA1 combined with date/time?
> The remaining half issue is if would it make sense to sometimes
> optionally use non 8-bit CTE for the patch part.
Maybe allow something like:
git-format-patch --attach=quoted-printable
where the default would be 8bit. This require adding a perl script for
each Content-Transfer-Encoding that we support.
Mike
next prev parent reply other threads:[~2006-03-07 3:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-06 13:12 PATCH: Allow format-patch to attach patches Mike McCormack
2006-03-07 1:01 ` Junio C Hamano
2006-03-07 3:20 ` Mike McCormack [this message]
2006-03-07 3:24 ` A Large Angry SCM
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=440CFC06.9080901@codeweavers.com \
--to=mike@codeweavers.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).