Re: [media-types] Mime type for patch files?

Clemens Ladisch <clemens@ladisch.de> Thu, 01 November 2018 08:58 UTC

Return-Path: <SRS0=WCJ9=NM=ladisch.de=clemens@webclient5.webclient5.de>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66E6512872C for <media-types@ietfa.amsl.com>; Thu, 1 Nov 2018 01:58:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.651
X-Spam-Level:
X-Spam-Status: No, score=-1.651 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 94sP6fkYuyoT for <media-types@ietfa.amsl.com>; Thu, 1 Nov 2018 01:58:09 -0700 (PDT)
Received: from webclient5.webclient5.de (webclient5.webclient5.de [IPv6:2a01:4f8:212:88::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D4D6C127B92 for <media-types@ietf.org>; Thu, 1 Nov 2018 01:58:08 -0700 (PDT)
Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id 88AE3558393A for <media-types@ietf.org>; Thu, 1 Nov 2018 09:58:06 +0100 (CET)
To: media-types@ietf.org
References: <sa67ehyzo3s.fsf@meta.reinholdtsen.name> <20181031102655.GI17721@w3.org> <sa6y3adnvs3.fsf@meta.reinholdtsen.name>
From: Clemens Ladisch <clemens@ladisch.de>
Message-ID: <7a0d47e2-807e-12d3-f6eb-727fd94ddcb1@ladisch.de>
Date: Thu, 01 Nov 2018 09:58:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <sa6y3adnvs3.fsf@meta.reinholdtsen.name>
Content-Type: text/plain; charset="us-ascii"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.4 at webclient5
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/CJscoQK7OYycwtPheMj5xOsv8DY>
Subject: Re: [media-types] Mime type for patch files?
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Nov 2018 09:02:02 -0000

Petter Reinholdtsen wrote:
> I have no idea how to identify the tool maintainers which currently
> recognize text/x-{patch,diff}.  Perhaps at least the maintainers of
> http://www.gnu.org/software/diffutils/ and
> http://savannah.gnu.org/projects/patch/ are relevant contributors to
> such discussion?  They do not really use or recognice MIME types, being
> command line tools, but are responsible for the typical producer and
> consumer of these files.

Pretty much all version control systems can generate patches.  However,
the default output typcially does not rely on MIME type detection but
uses custom formatting (in a GUI, or in HTML).  As far as I can see,
the only place where the MIME type might matter are e-mail attachments.

> I notice you mention application/*.  Is not text/* a better choice,
> given that for example patches in emails could be shown directly in the
> email and do not need a "viewer" to be readable to those of us receiving
> patches?

As it happens, cgit deliberately returns "text/plain" (e.g.,
<http://git.savannah.gnu.org/cgit/patch.git/patch/?id=HEAD>).


Regards,
Clemens