git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Emma Brooks <me@pluvano.com>
Cc: git@vger.kernel.org, Eric Wong <e@80x24.org>
Subject: Re: [PATCH] Documentation: explain "mboxrd" pretty format
Date: Wed, 15 Apr 2020 22:03:36 -0700	[thread overview]
Message-ID: <xmqqlfmw2f9z.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20200416041658.85100-1-me@pluvano.com> (Emma Brooks's message of "Thu, 16 Apr 2020 04:16:59 +0000")

Emma Brooks <me@pluvano.com> writes:

> The "mboxrd" pretty format was introduced in 9f23e04061 (pretty: support
> "mboxrd" output format, 2016-06-05) but wasn't mentioned in the
> documentation.
>
> Signed-off-by: Emma Brooks <me@pluvano.com>
> ---
>  Documentation/pretty-formats.txt | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
> index a4b6f49186..547a552463 100644
> --- a/Documentation/pretty-formats.txt
> +++ b/Documentation/pretty-formats.txt
> @@ -83,6 +83,12 @@ placeholders, its output is not affected by other options like
>  
>  	  <full commit message>
>  
> +* 'mboxrd'
> ++
> +Like 'email', but lines in the commit message starting with "From "
> +(preceded by zero or more ">") are quoted with ">" so they aren't
> +confused as starting a new commit.

I am torn between rephrasing "starting a new commit" with "starting
a new e-mail message", and keeping it as-is.  Technically, the latter
is more correct---the >From quoting is a technique to avoid starting
a line with "From " in a reversible way, as pieces of e-mails in a
single mailbox file needs to be split at the boundary.  But in the
context of format-patch, perhaps saying each "record" in the output
file is a "commit" (not a piece of e-mail message) would probably be
an acceptable white lie.

Thanks.


>  * 'raw'
>  +
>  The 'raw' format shows the entire commit exactly as

  parent reply	other threads:[~2020-04-16  5:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-16  4:16 [PATCH] Documentation: explain "mboxrd" pretty format Emma Brooks
2020-04-16  4:44 ` Eric Wong
2020-04-16  5:03 ` Junio C Hamano [this message]
2020-04-17  1:47   ` Emma Brooks
2020-04-17  2:00     ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqlfmw2f9z.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=e@80x24.org \
    --cc=git@vger.kernel.org \
    --cc=me@pluvano.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).