From: Samuel GROOT Date: Sun, 29 May 2016 17:21:49 GMT Subject: Re: [WIP-PATCH 0/2] send-email: refactor the email parser loop Message-ID: <7423b133-cec4-e633-f1ef-70ccc6a6cc02@grenoble-inp.org> In-Reply-To: On 05/28/2016 05:04 PM, Matthieu Moy wrote: > Eric Wong writes: > >> Samuel GROOT wrote: >> >>> (mbox) Adding cc: A from line 'Cc: A, One' >>> (mbox) Adding cc: One from line 'Cc: A, One' >>> >>> Though `git send-email` now outputs something like: >>> >>> (mbox) Adding cc: A from line 'Cc: A' >>> (mbox) Adding cc: One from line 'Cc: One' >> I actually like neither, and would prefer something shorter: >> >> (mbox) Adding cc: A from Cc: header >> (mbox) Adding cc: One from Cc: header >> (mbox) Adding cc: SoB from Signed-off-by: trailer >> >> That way, there's no redundant addresses in each line and less >> likely to wrap. > > I agree with this. Actually, I'd even say that the current output of > "git send-email" looks sloppy, and internal refactoring may be a good > opportunity to get it cleaner. I agree. Should we take what Eric suggested (see below) as standard output? > Since the headers are already shown after those lines, it's > redundant to have the entire line. And we could add > trailers after the headers (with a blank line to delimit): > > # existing header output: > From: F > Cc: A , One > Subject: foo > > # new trailer output > Signed-off-by: SoB > Acked-by: ack And keep "(mbox) Adding ..." lines as error output, or maybe displayable by a new option `--verbose`?