Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC PATCHv2 1/2] am: add gitk patch format

From: Chris Packham <hidden>
Date: 2016-06-15 23:02:26

(added back git ml because I accidentally dropped the Cc when replying
to Junio).

On Fri, Sep 5, 2014 at 10:57 AM, Junio C Hamano [off-list ref] wrote:
quoted
quoted
I doubt that a patchset that does
not update mailinfo and mailsplit to extract information and to undo
the indentation could be a right solution.
I've read this sentence a couple of times and I can't understand it.
"am" uses mailsplit on the input file to separate it into one or more
input files, each of which represents a single change. On each of
them, it uses mailinfo to extract the meta information (e.g.
authorship), log message and the patch into separate files.
Except when --patch-format=hg|stgit is specified (or detected). In
these cases mailsplit is avoided.
It does not make any sense for a support for a new input format that
does not teach mailinfo how to handle that format. Transforming it
into a pseudo e-mail format is not the way to go. If that approach were
acceptable, that format conversion filter can be run completely outside
"am" in the first place, no?
So teaching git mailinfo to do s/^    // (either when asked to or
using some heuristic) would be a better approach? I also think we
should accept "Author:" as an acceptable fallback if "From:" is not
present.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help