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

Re: [PATCH] revision: add --maximal option

From
Johannes Sixt <j6t@kdbg.org>
Date
Jan 18, 2026, 09:05 UTC
Message-ID
<1da38e88-3f61-43df-9c75-5716d715bf80@kdbg.org>
In-Reply-To
<pull.2032.git.1768703645125.gitgitgadget@gmail.com>
Am 18.01.26 um 03:34 schrieb Derrick Stolee via GitGitGadget:
Show 11 quoted lines
> diff --git a/Documentation/rev-list-options.adoc b/Documentation/rev-list-options.adoc
> index 453ec59057..f0d2ab32a9 100644
> --- a/Documentation/rev-list-options.adoc
> +++ b/Documentation/rev-list-options.adoc
> @@ -444,6 +444,10 @@ The following options affect the way the simplification is performed:
>  	times; if so, a commit is included if it is any of the commits
>  	given or if it is an ancestor or descendant of one of them.
>  
> +`--maximal`::
> +	Restrict the output commits to be those that are not reachable
> +	from any other commits in the revision range.

I had to read this sentence three times to understand what it wants to say, and that even though I had a rough idea what it was supposed to mean. I tried to come up with a better wording, but found it to be really hard.

	Restrict output to the commits at the tips of the
	revision range.
is all I could do, but this isn't a lot better, I am afraid.

The option name is too generic IMHO. How about "--starting-point", "--topmost-only"? It's function is somewhat parallel to --boundary, but at the positive end of the revision range. Perhaps we can use that as inspiration.

The option is listed among options that affect the way the simplification is performed. But is this true? Isn't it just an option that changes what output is produced?

-- Hannes
Previous: Derrick Stolee via GitGitGadgetNext: Derrick Stolee
Message 2 of 19 in “revision: add --maximal option”
  1. revision: add --maximal optionDerrick Stolee via GitGitGadget, Jan 18, 2026
  2. Johannes SixtJan 18, 2026
  3. Derrick StoleeJan 18, 2026
  4. Johannes SixtJan 19, 2026
  5. Derrick StoleeJan 19, 2026
  6. Johannes SixtJan 19, 2026
  7. Junio C HamanoJan 20, 2026
  8. Derrick StoleeJan 22, 2026
  9. revision: add --maximal-only optionDerrick Stolee via GitGitGadget, Jan 22, 2026
  10. Junio C HamanoJan 22, 2026
  11. Derrick StoleeJan 22, 2026
  12. Junio C HamanoJan 22, 2026
  13. Johannes SixtJan 23, 2026
  14. Junio C HamanoJan 23, 2026
  15. Derrick StoleeJan 23, 2026
  16. Junio C HamanoJan 23, 2026
  17. Derrick StoleeJan 28, 2026
  18. Junio C HamanoJan 29, 2026
  19. Derrick StoleeJan 29, 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.