From: Junio C Hamano Subject: Re: git-format-patch --subject-prefix support. Date: Wed, 11 Apr 2007 18:52:38 -0700 Message-ID: <7v4pnmmk9l.fsf@assigned-by-dhcp.cox.net> References: <11763358884124-git-send-email-robbat2@gentoo.org> <7vodlumntw.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Robin H. Johnson" , git@vger.kernel.org To: Julian Phillips X-From: git-owner@vger.kernel.org Thu Apr 12 03:53:01 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HboUa-0001sH-Rp for gcvg-git@gmane.org; Thu, 12 Apr 2007 03:52:57 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161444AbXDLBwk (ORCPT ); Wed, 11 Apr 2007 21:52:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1161459AbXDLBwk (ORCPT ); Wed, 11 Apr 2007 21:52:40 -0400 Received: from fed1rmmtao101.cox.net ([68.230.241.45]:56324 "EHLO fed1rmmtao101.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161444AbXDLBwj (ORCPT ); Wed, 11 Apr 2007 21:52:39 -0400 Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao101.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070412015240.NNSR1235.fed1rmmtao101.cox.net@fed1rmimpo02.cox.net>; Wed, 11 Apr 2007 21:52:40 -0400 Received: from assigned-by-dhcp.cox.net ([68.5.247.80]) by fed1rmimpo02.cox.net with bizsmtp id m1se1W00g1kojtg0000000; Wed, 11 Apr 2007 21:52:39 -0400 In-Reply-To: (Julian Phillips's message of "Thu, 12 Apr 2007 01:54:20 +0100 (BST)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Julian Phillips writes: > On Wed, 11 Apr 2007, Junio C Hamano wrote: > >> "Robin H\. Johnson" writes: >> >>> Add a new option to git-format-patch, entitled --subject-prefix that allows >>> control of the subject prefix '[PATCH]'. Using this option, the text 'PATCH' is >>> replaced with whatever input is provided to the option. This allows easily >>> generating patches like '[PATCH 2.6.21-rc3]' or properly numbered series like >>> '[-mm3 PATCH N/M]'. >>> >>> 1/2 - Implementation and documentation >>> 2/2 - Test case >> >> I suspect this is a job for send-email, not format-patch. List? > > Surely though, send-email is simply a helper for sending patches > generated by format-patch? Is there any reason to deny the ability to > set the prefix to those who don't use send-email but do use > format-patch? (Personally I found send-email to be cumbersome and > confusing, so I've stopped using it ...) > > It's format-patch that applies the current "[PATCH]" prefix anyway ... I was more worried about people's scripts who postprocess format-patch output, relying on the '[PATCH]' to be there. But they should be using -k to suppress it anyway, so this addition should be Ok. Somebody needs to verify that mailinfo groks e-mails correctly even when they have "Subject: [random garbage] title" though.