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

Re: [PATCH 7/7] rev-list-options.txt

From
Derrick Stolee <stolee@gmail.com>
Date
May 18, 2020, 14:57 UTC
Message-ID
<34870e5f-8e61-4af8-1050-43bfbe30d8f9@gmail.com>
In-Reply-To
<acfca5465e822eaa6f0ddf85a01f7855d3dfb7d1.1589739920.git.martin.agren@gmail.com>
On 5/17/2020 2:52 PM, Martin Ågren wrote:
Show 32 quoted lines
> The explanation of the `--show-pulls` option added in commit 8d049e182e
> ("revision: --show-pulls adds helpful merges", 2020-04-10) consists of
> several paragraphs and we use "+" throughout to tie them together in one
> long chain of list continuations. Only thing is, we're not in any kind
> of list, so these pluses end up being rendered literally.
> 
> The preceding few paragraphs describe `--ancestry-path` and there we
> *do* have a list, since we've started one with `--ancestry-path::`. But
> we don't have a similar list running here. We could tie all our
> paragraphs from 8d049e182e to that list, but that doesn't make much
> sense: We aim to describe another option entirely.
> 
> We could start a new list item:
> 
>  --show-pulls:
>     Before discussing another option, `--show-pulls`, we need to
>     create a new example history.
>  +
>     ...
> 
> That reads somewhat awkwardly to me. Not to mention that the chain of
> paragraphs that follows is fairly long, introducing a new example
> history and discussing it in quite some detail. Let's make this run
> along without any kind of indentation. It effectively means that we're
> treating "Before discussing..." as a paragraph on the same level as
> "There is another simplification mode available:" which precedes the
> `--ancestry-path::` list.
> 
> If we really want a `--show-pulls::` list somewhere, we could perhaps
> let it begin around "The `--show-pulls` option helps with both of these
> issues ..." further down. But for now, let's just focus on getting rid
> of those literal pluses.

I think the way you adjusted the preamble is good. It matches this prior work before --ancestry-path:

	Finally, there is a fifth simplification mode available:
	--ancestry-path::
		(description)
	+
	(example)
	+
	...

And you're right, we do drop the "--show-pulls::" itemization. Will that make it hard to link to that exact option? Probably.

What about the fixup below, to create this list item?

Thanks, -Stolee

-- >8 --
From 6416bbc14fbdb21868c6f3b609f66e5fe5607265 Mon Sep 17 00:00:00 2001
From: Derrick Stolee <dstolee@microsoft.com>
Date: Mon, 18 May 2020 10:55:59 -0400
Subject: [PATCH] fixup! rev-list-options.txt
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
---
 Documentation/rev-list-options.txt | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt
index 48e37e2456..b01b2b6773 100644
--- a/Documentation/rev-list-options.txt
+++ b/Documentation/rev-list-options.txt
@@ -672,25 +672,28 @@ into the important branch. This commit may have information about why
 the change `X` came to override the changes from `A` and `B` in its
 commit message.
 
-The `--show-pulls` option helps with both of these issues by adding more
-merge commits to the history results. If a merge is not TREESAME to its
-first parent but is TREESAME to a later parent, then that merge is
+--show-pulls::
+	In addition to the commits shown in the default history, show
+	each merge commit that is not TREESAME to its first parent but
+	is TREESAME to a later parent.
++
+When a merge commit is included by `--show-pulls`, the merge is
 treated as if it "pulled" the change from another branch. When using
 `--show-pulls` on this example (and no other options) the resulting
 graph is:
-
++
 -----------------------------------------------------------------------
 	I---X---R---N
 -----------------------------------------------------------------------
-
++
 Here, the merge commits `R` and `N` are included because they pulled
 the commits `X` and `R` into the base branch, respectively. These
 merges are the reason the commits `A` and `B` do not appear in the
 default history.
-
++
 When `--show-pulls` is paired with `--simplify-merges`, the
 graph includes all of the necessary information:
-
++
 -----------------------------------------------------------------------
 	  .-A---M--.   N
 	 /     /    \ /
@@ -699,7 +702,7 @@ graph includes all of the necessary information:
 	  \ /      /
 	   `---X--'
 -----------------------------------------------------------------------
-
++
 Notice that since `M` is reachable from `R`, the edge from `N` to `M`
 was simplified away. However, `N` still appears in the history as an
 important commit because it "pulled" the change `R` into the main
-- 
2.27.0.rc0
Previous: Martin ÅgrenNext: Martin Ågren
Message 16 of 24 in “Documentation fixes for v2.27.0-rc0”
  1. 0/7 Documentation fixes for v2.27.0-rc0Martin Ågren, May 17, 2020
  2. 1/7 date-formats.txt: fix list continuationMartin Ågren, May 17, 2020
  3. 2/7 git-bugreport.txt: fix reference to strftime(3)Martin Ågren, May 17, 2020
  4. Eric SunshineMay 17, 2020
  5. Martin ÅgrenMay 17, 2020
  6. Jean-Noël AvilaMay 18, 2020
  7. Martin ÅgrenMay 18, 2020
  8. 3/7 git-commit-graph.txt: fix grammoMartin Ågren, May 17, 2020
  9. Derrick StoleeMay 18, 2020
  10. 4/7 git-commit-graph.txt: fix list renderingMartin Ågren, May 17, 2020
  11. 5/7 git-credential.txt: use list continuationMartin Ågren, May 17, 2020
  12. Carlo Marcelo Arenas BelónMay 18, 2020
  13. 6/7 git-sparse-checkout.txt: add missing 'Martin Ågren, May 17, 2020
  14. Derrick StoleeMay 18, 2020
  15. 7/7 rev-list-options.txtMartin Ågren, May 17, 2020
  16. Derrick StoleeMay 18, 2020
  17. Martin ÅgrenMay 18, 2020
  18. Junio C HamanoMay 18, 2020
  19. rev-list-options.txt: start a list for `show-pulls`Martin Ågren, May 25, 2020
  20. Derrick StoleeMay 26, 2020
  21. Martin ÅgrenMay 26, 2020
  22. Junio C HamanoMay 26, 2020
  23. Derrick StoleeMay 26, 2020
  24. Martin ÅgrenMay 26, 2020

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.