From: Jonathan Tan Date: Mon, 03 Oct 2016 21:28:14 GMT Subject: Re: [RFC/PATCH 0/2] place cherry pick line below commit title Message-ID: In-Reply-To: On 10/03/2016 12:17 PM, Junio C Hamano wrote: > It may be necessary for the code to analize the lines in a block > identified as "likely to be a trailing block" more carefully, > though. The example 59f0aa94 in the message you are responding to > has "Link 1:" that consists of 3 physical lines. An instruction to > interpret-trailers to add a new one _after_ "Link-$n:" may have to > treat these as a single logical line and do the addition after them, > i.e. before "Link 2:" line, for example. > > I also saw > > Signed-off-by: Some body (some comment > that extends to the next line without being indented) > Sined-off-by: Some body Else > > where the only clue that the second line is logically a part of the > first one was the balancing of parentheses (or [brakets]). To > accomodate real-world use cases, you may have to take into account a > lot more than the strict rfc-822 style "line folding". If we define a logical trailer line as the set of physical lines until the next trailer line...it is true that this has some precedence in that such lines can be written (although this might not be intentional): $ git interpret-trailers --trailer "a=foo bar"