From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Morton Subject: Re: [PATCH v10 11/12] Documentation: add documentation for 'git interpret-trailers' Date: Tue, 29 Apr 2014 14:25:15 +0100 Message-ID: <535FA83B.3010008@game-point.net> References: <20140406163214.15116.91484.chriscool@tuxfamily.org> <20140406170204.15116.15559.chriscool@tuxfamily.org> <20140425.215619.2296838250398594645.chriscool@tuxfamily.org> <535F8785.10302@game-point.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Christian Couder , git To: Christian Couder X-From: git-owner@vger.kernel.org Tue Apr 29 15:25:52 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wf82a-00062O-HH for gcvg-git-2@plane.gmane.org; Tue, 29 Apr 2014 15:25:44 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757516AbaD2NZb (ORCPT ); Tue, 29 Apr 2014 09:25:31 -0400 Received: from mail.gooeysoftware.com ([208.100.15.213]:50774 "EHLO mail.gooeysoftware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757399AbaD2NZb (ORCPT ); Tue, 29 Apr 2014 09:25:31 -0400 Received: from [192.168.0.2] (82-69-83-224.dsl.in-addr.zen.co.uk [82.69.83.224]) by mail.gooeysoftware.com (Postfix) with ESMTPSA id CCF8018A09AC; Tue, 29 Apr 2014 08:33:03 -0500 (CDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On 29/04/2014 12:47, Christian Couder wrote: >> Also, if there were no current branch name because you're committing in a >> detached head state, it would be nice if you could have some logic to >> determine that, and instead write the trailer as: >> Made-on-branch: (detached HEAD: AB12CD34) > > You may need to write a small script for that. > Then you just need the "trailer.m-o-b.command" config value to point > to your script. > >> ... or whatever. And also how about some logic to be able to say that if >> you're committing to the "master" branch, the trailer doesn't get inserted >> at all? > > You can script that too. But it would be nicer if the logic were built-in, then you wouldn't have to share some script with your work colleagues. :-) -- Best regards, Jeremy Morton (Jez)