All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: <git@vger.kernel.org>, Alan Mackenzie <acm@muc.de>
Subject: Re: [PATCH v2] docs: rephrase and clarify the git status --short format
Date: Mon, 11 Jan 2021 12:22:10 -0800	[thread overview]
Message-ID: <xmqqr1mr6x71.fsf@gitster.c.googlers.com> (raw)
In-Reply-To: <20210110190448.779754-1-sandals@crustytoothpaste.net> (brian m. carlson's message of "Sun, 10 Jan 2021 19:04:48 +0000")

"brian m. carlson" <sandals@crustytoothpaste.net> writes:

> The table describing the porcelain format in git-status(1) is helpful,
> but it's not completely clear what the three sections mean, even to
> some contributors.  As a result, users are unable to find how to detect
> common cases like merge conflicts programmatically.
>
> Let's improve this situation by rephrasing to be more explicit about
> what each of the sections in the table means, to tell users in plain
> language which cases are occurring, and to describe what "unmerged"
> means.
>
> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
> ---
> This uses text from Junio's email, so his sign-off will be required
> here.  I assume that won't be a problem, but I can send a v3 if it is.

Actually I find the text so vastly improved from "here is my
attempt" version in the discussion that, other than the paragraph
structure, there is nothing left that I can call my contribution.
I'll sign the resulting commit off anyway, though ;-)

> +There are three different types of states that are shown using this format, and
> +each one uses the `XY` syntax differently:
> ...
> +
> +Note that the term _merge_ here also includes rebases using the default
> +`--merge` strategy, cherry-picks, and anything else using the merge machinery.

Even if rebase uses the good-old "format-patch | am -3" pipeline, it
would result in an index with entries at higher stages.  So I am not
sure if this "Note that" helps the reader.

> +In the following table, these three classes are shown in separate sections, and

This iteration has improved the "Three different classes of paths
are shown" in the "here is my attempt" version to "Three different
types of states ..."; shouldn't we be doing the same here with
s/classes/types of states/?

> +these characters are used for `X` and `Y` fields for the first two sections that
> +show tracked paths:

Thanks.

  reply	other threads:[~2021-01-11 20:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-09 19:14 Difficulties of scripting git Alan Mackenzie
2021-01-09 21:42 ` brian m. carlson
2021-01-09 22:06 ` [PATCH] docs: add description of status output table brian m. carlson
2021-01-10  1:41   ` Junio C Hamano
2021-01-10  1:58     ` brian m. carlson
2021-01-10 12:28     ` Alan Mackenzie
2021-01-10 18:32       ` brian m. carlson
2021-01-10 19:04 ` [PATCH v2] docs: rephrase and clarify the git status --short format brian m. carlson
2021-01-11 20:22   ` Junio C Hamano [this message]
2021-01-16 21:45     ` brian m. carlson

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=xmqqr1mr6x71.fsf@gitster.c.googlers.com \
    --to=gitster@pobox.com \
    --cc=acm@muc.de \
    --cc=git@vger.kernel.org \
    --cc=sandals@crustytoothpaste.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.