From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Couder Subject: Re: [PATCH v10 11/12] Documentation: add documentation for 'git interpret-trailers' Date: Fri, 25 Apr 2014 21:56:19 +0200 (CEST) Message-ID: <20140425.215619.2296838250398594645.chriscool@tuxfamily.org> References: <20140406163214.15116.91484.chriscool@tuxfamily.org> <20140406170204.15116.15559.chriscool@tuxfamily.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org, johan@herland.net, josh@joshtriplett.org, tr@thomasrast.ch, mhagger@alum.mit.edu, dan.carpenter@oracle.com, greg@kroah.com, peff@peff.net, sunshine@sunshineco.com, ramsay@ramsay1.demon.co.uk, jrnieder@gmail.com To: gitster@pobox.com X-From: git-owner@vger.kernel.org Fri Apr 25 21:56:29 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 1WdmEW-0007hv-M5 for gcvg-git-2@plane.gmane.org; Fri, 25 Apr 2014 21:56:29 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752819AbaDYT4Y (ORCPT ); Fri, 25 Apr 2014 15:56:24 -0400 Received: from mail-3y.bbox.fr ([194.158.98.45]:60930 "EHLO mail-3y.bbox.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751911AbaDYT4W (ORCPT ); Fri, 25 Apr 2014 15:56:22 -0400 Received: from localhost (cha92-h01-128-78-31-246.dsl.sta.abo.bbox.fr [128.78.31.246]) by mail-3y.bbox.fr (Postfix) with ESMTP id 680213A; Fri, 25 Apr 2014 21:56:20 +0200 (CEST) In-Reply-To: X-Mailer: Mew version 6.3 on Emacs 23.3 / Mule 6.0 (HANACHIRUSATO) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: From: Junio C Hamano > > Christian Couder writes: > >> +Help add RFC 822-like headers, called 'trailers', at the end of the >> +otherwise free-form part of a commit message. > > I think it is somewhat misleading to use the word "headers" like > that. 'trailers' look similar to RFC-822-headers but they come at > the end. The sentence however reads as if they are "headers" that > look like RFC 822. Perhaps shuffling words like so: > > Help adding 'trailers' lines, that look similar to RFC 822 > e-mail headers, at the end of the ... > > would make it less confusing. Ok, I made this change in v11. >> +Some configuration variables control the way the `token` arguments are >> +applied to the message and the way any existing trailer in the message >> +is changed. They also make it possible to automatically add some >> +trailers. >> + >> +By default, a 'token=value' or 'token:value' argument will be added >> +only if no trailer with the same (token, value) pair is already in the >> +message. The 'token' and 'value' parts will be trimmed to remove >> +starting and trailing whitespace, and the resulting trimmed 'token' >> +and 'value' will appear in the message like this: >> + >> +------------------------------------------------ >> +token: value >> +------------------------------------------------ > > Mental note: this does assume that the final output for the 'token' > is to have a line