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

[PATCH v2 2/6] doc: git bisect: clarify the usage of the synopsis vs actual command

From
Jean-Noël Avila via GitGitGadget <gitgitgadget@gmail.com>
Date
May 25, 2026, 10:28 UTC
Message-ID
<4fb33dd4407a51c5ece6fb467e98c4da1ffa6f0e.1779704908.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.2117.v2.git.1779704908.gitgitgadget@gmail.com>
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>

The difference between a synopsis and an actual command is that the synopsis is a more abstract representation of the command, which may include placeholders for arguments and options. The actual command is the specific instance of the command with all the arguments and options filled in.

The formatting of an actual command is a code block, with the command prefixed by a dollar sign ($) to indicate that it is a command to be run in the terminal. It can also include comments with a hash sign (#) to explain the command or provide additional information, just like in a regular terminal session.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
---
 Documentation/git-bisect.adoc | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/Documentation/git-bisect.adoc b/Documentation/git-bisect.adoc
index 4765d3b969..d2115b2990 100644
--- a/Documentation/git-bisect.adoc
+++ b/Documentation/git-bisect.adoc
@@ -96,9 +96,8 @@ Bisect reset
 After a bisect session, to clean up the bisection state and return to
 the original `HEAD`, issue the following command:
 
-------------------------------------------------
-$ git bisect reset
-------------------------------------------------
+[synopsis]
+git bisect reset
 
 By default, this will return your tree to the commit that was checked
 out before `git bisect start`.  (A new `git bisect start` will also do
@@ -108,7 +107,8 @@ With an optional argument, you can return to a different commit
 instead:
 
 [synopsis]
-$ git bisect reset <commit>
+git bisect reset <commit>
+
 
 For example, `git bisect reset bisect/bad` will check out the first
 bad revision, while `git bisect reset HEAD` will leave you on the
@@ -174,13 +174,13 @@ For example, if you are looking for a commit that introduced a
 performance regression, you might use
 
 ------------------------------------------------
-git bisect start --term-old fast --term-new slow
+$ git bisect start --term-old fast --term-new slow
 ------------------------------------------------
 
 Or if you are looking for the commit that fixed a bug, you might use
 
 ------------------------------------------------
-git bisect start --term-new fixed --term-old broken
+$ git bisect start --term-new fixed --term-old broken
 ------------------------------------------------
 
 Then, use `git bisect <term-old>` and `git bisect <term-new>` instead
@@ -328,11 +328,10 @@ Bisect run
 If you have a script that can tell if the current source code is good
 or bad, you can bisect by issuing the command:
 
-------------
-$ git bisect run my_script arguments
-------------
+[synopsis]
+git bisect run <cmd> [<arg>...]
 
-Note that the script (`my_script` in the above example) should exit
+Note that _<cmd>_ run with _<arg>_  should exit
 with code 0 if the current source code is good/old, and exit with a
 code between 1 and 127 (inclusive), except 125, if the current source
 code is bad/new.
-- 
gitgitgadget
Previous: Jean-Noël Avila via GitGitGadgetNext: Jean-Noël Avila via GitGitGadget
Message 13 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.