git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 16:50 UTC

Re: [PATCH 1/5] doc: convert git-bisect to synopsis style

From
Jean-Noël AVILA <jn.avila@free.fr>
Date
May 19, 2026, 20:57 UTC
Message-ID
<5072065.GXAFRqVoOG@piment-oiseau>
In-Reply-To
<xmqq4ik5d0le.fsf@gitster.g>
On Monday, 18 May 2026 02:26:37 CEST Junio C Hamano wrote:
Show 16 quoted lines
> "Jean-Noël Avila via GitGitGadget" <gitgitgadget@gmail.com> writes:
> > From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
> > 
> > Convert Documentation/git-bisect.adoc to the modern synopsis style.
> > 
> > - Replace [verse] with [synopsis] in the SYNOPSIS block
> 
> This was expected.
> 
> > - Remove single quotes around command names in the synopsis
> > - Use backticks for inline commands, options, refs, and special values
> > - Apply [synopsis] attribute to in-body command-form code blocks
> 
> This is very much unexpected.  I think everybody thought [synopsis]
> was invented to be used for the SYNOPSIS section at the beginning of
> each manual page, and ...

In fact, the synopsis style was already applied before outside the SYNOPSIS sections in diff-generate-patch.adoc when describing the output of the -p option.

This formatting reaches beyond the synopsis, but the rationale is simple. Each time a listing contains some <placeholder>, what is actually described is a model, not an actual output. The <placeholder> needs a special formatting to convey its special meaning.

That may mean that the naming of "synopsis style" may not be adequate.
Show 6 quoted lines
> 
> >  SYNOPSIS
> >  --------
> > 
> > -[verse]
> > -'git bisect' start [--term-(bad|new)=<term-new> --term-(good|old)=<term-
old>]
> > -		   [--no-checkout] [--first-parent] [<bad> [<good>...]] 
[--] [<pathspec>...]
> > ...
> > -'git bisect' help
> > +[synopsis]
> > +git bisect start [--term-(bad|new)=<term-new> --term-(good|old)=<term-
old>]
> > +		 [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] 
[<pathspec>...]
Show 23 quoted lines
> > ...
> > +git bisect help
> 
> ... a change like this is very much expected and understandable, but
> 
> new appearances of [synonsis] in places like:
> > +[synopsis]
> > 
> >  ------------------------------------------------
> >  $ git bisect reset <commit>
> >  ------------------------------------------------
> 
> and
> 
> > +[synopsis]
> > 
> >  ------------------------------------------------
> >  git bisect old [<rev>]
> >  ------------------------------------------------
> 
> were a bit surprising and confusing.  They are not exactly command
> syntax definitions (which is the SYNOPSIS section is about), but
> examples of usage. 

Are they? the "[<rev>]" block is typical of synopsis syntax, not something you would actually type in.

> The one with '$' command line prompt feels
> particularly confusing, as the prompt is not something that the
> end-user gives, unlike what we write in the synopsis section.
> 
The '$' is an error to me. Will fix.
> Other than that, this is quite exciting.
Previous: Junio C HamanoNext: Jean-Noël AVILA
Message 9 of 17 in “doc: convert another batch of files to synopsis style”
  1. 0/5 doc: convert another batch of files to synopsis styleJean-Noël Avila via GitGitGadget, May 17, 2026
  2. 1/5 doc: convert git-bisect to synopsis styleJean-Noël Avila via GitGitGadget, May 17, 2026
  3. 2/5 doc: convert git-grep synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 17, 2026
  4. 3/5 doc: convert git-am synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 17, 2026
  5. 4/5 doc: convert git-apply synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 17, 2026
  6. 5/5 doc: convert git-imap-send synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 17, 2026
  7. Junio C HamanoMay 18, 2026
  8. Junio C HamanoMay 18, 2026
  9. Jean-Noël AVILAMay 19, 2026
  10. Jean-Noël AVILAMay 19, 2026
  11. 0/6 doc: convert another batch of files to synopsis styleJean-Noël Avila via GitGitGadget, May 25, 2026
  12. 1/6 doc: convert git-bisect to synopsis styleJean-Noël Avila via GitGitGadget, May 25, 2026
  13. 2/6 doc: git bisect: clarify the usage of the synopsis vs actual commandJean-Noël Avila via GitGitGadget, May 25, 2026
  14. 3/6 doc: convert git-grep synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 25, 2026
  15. 4/6 doc: convert git-am synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 25, 2026
  16. 5/6 doc: convert git-apply synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 25, 2026
  17. 6/6 doc: convert git-imap-send synopsis and options to new styleJean-Noël Avila via GitGitGadget, May 25, 2026

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.