git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/6] doc: clarify boundaries of 'git worktree list --porcelain'

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Oct 22, 2018, 21:14 UTC
Message-ID
<CAPig+cTfrwMiYKcOZdiS-yTMCgYo1sfHLFCnX=hxaVyWNqUr8Q@mail.gmail.com>
In-Reply-To
<20181022204546.20354-2-asheiduk@gmail.com>
On Mon, Oct 22, 2018 at 4:46 PM Andreas Heiduk <asheiduk@gmail.com> wrote:
Show 9 quoted lines
> diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
> @@ -270,8 +270,8 @@ Porcelain Format
>  The porcelain format has a line per attribute.  Attributes are listed with a
>  label and value separated by a single space.  Boolean attributes (like 'bare'
>  and 'detached') are listed as a label only, and are only present if and only
> -if the value is true.  An empty line indicates the end of a worktree.  For
> -example:
> +if the value is true.  The first attribute of a worktree is always `worktree`,
> +an empty line indicates the end of the record.  For example:

When I suggested the --porcelain option for "git worktree list" and provided an example of its proposed output, the idea all along was that the "worktree" line itself would indicate start-of-stanza. A blank line between records is superfluous and unnecessary. Unfortunately, by the time the implementation was posted with blank line as stanza separator, I was not around to contest it, and it ended up in a release, after which point it was too late to change it.

So, the tl;dr is that this documentation update agrees with the original intention as I envisioned it (although I wouldn't be sad to see the mention of "blank line" dropped altogether, but that's perhaps a separate battle).

Previous: Andreas HeidukNext: Andreas Heiduk
Message 3 of 8 in “various fixes for docs”
  1. 0/6 various fixes for docsAndreas Heiduk, Oct 22, 2018
  2. 1/6 doc: clarify boundaries of 'git worktree list --porcelain'Andreas Heiduk, Oct 22, 2018
  3. Eric SunshineOct 22, 2018
  4. 2/6 doc: fix ASCII art tab spacingAndreas Heiduk, Oct 22, 2018
  5. 3/6 doc: fix inappropriate monospace formattingAndreas Heiduk, Oct 22, 2018
  6. 5/6 doc: fix indentation of listing blocks in gitweb.conf.txtAndreas Heiduk, Oct 22, 2018
  7. 6/6 doc: fix formatting in git-update-refAndreas Heiduk, Oct 22, 2018
  8. 4/6 doc: fix descripion for 'git tag --format'Andreas Heiduk, Oct 22, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.