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

Re: Re* [BUG] git-bisect man page description of terms command doesn't mention old/new support

From
Matthieu Moy <git@matthieu-moy.fr>
Date
Dec 11, 2023, 12:34 UTC
Message-ID
<24a42fa6-7bc4-4a3b-8bf4-a0ef85dc457a@matthieu-moy.fr>
In-Reply-To
<xmqqzfyjmk02.fsf@gitster.g>
On 12/9/23 17:13, Junio C Hamano wrote:
Show 13 quoted lines
> so you could read that
> 
> 	git bisect terms --term-good
> 	git bisect terms --term-old
> 
> are the same thing, and when you squint your eyes, you can probably
> guess that
> 
> 	git bisect terms --term-bad
> 	git bisect terms --term-new
> 
> are the same.  But I agree that the documentation should not force
> you to guess.
Agreed.
Show 8 quoted lines
> --- c/Documentation/git-bisect.txt
> +++ w/Documentation/git-bisect.txt
> @@ -20,7 +20,7 @@ on the subcommand:
>   		  [--no-checkout] [--first-parent] [<bad> [<good>...]] [--] [<paths>...]
>    git bisect (bad|new|<term-new>) [<rev>]
>    git bisect (good|old|<term-old>) [<rev>...]
> - git bisect terms [--term-good | --term-bad]
> + git bisect terms [--term-(good|old) | --term-(bad|new)]
Nit: just above we have the description for `bisect start` saying:
--term-{new,bad}=<term> --term-{old,good}=<term>

it probably makes sense to make both homogeneous (start with the same alternative, and make the {...,...} vs (...|...) notations consistent. The (...|...) notation seems the most common).

In any case, the patch looks good to me, thanks.
-- 
Matthieu Moy
https://matthieu-moy.fr/
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 11 in “[BUG] git-bisect man page description of terms command doesn't mention old/new support”
  1. Britton KerinDec 9, 2023
  2. Re* [BUG] git-bisect man page description of terms command doesn't mention old/new supportJunio C Hamano, Dec 9, 2023
  3. Matthieu MoyDec 11, 2023
  4. Junio C HamanoDec 11, 2023
  5. 0/2 minute "git bisect" doc updatesJunio C Hamano, Feb 7, 2024
  6. 1/2 bisect: document "terms" subcommand more fullyJunio C Hamano, Feb 7, 2024
  7. Kristoffer HaugsbakkFeb 8, 2024
  8. Junio C HamanoFeb 8, 2024
  9. 2/2 bisect: document command line arguments for "bisect start"Junio C Hamano, Feb 7, 2024
  10. Jean-Noël AvilaFeb 8, 2024
  11. Christian CouderFeb 9, 2024

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.