From: Christian Couder Date: Fri, 25 Apr 2014 19:56:19 GMT Subject: Re: [PATCH v10 11/12] Documentation: add documentation for 'git interpret-trailers' Message-ID: <20140425.215619.2296838250398594645.chriscool@tuxfamily.org> In-Reply-To: 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