Skip to contentSkip to conversation

doc: rerere-options.adoc: link to git-rerere(1)

PATCH Superseded [email protected] 4 participants 10 messages Feb 9 – Feb 12 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: rerere-options.adoc: link to git-rerere(1)

From: Kristoffer Haugsbakk <[email protected]>

Five commands include these options. Let’s link to the command so that the curious user can learn more about what “rerere” is about.

---

Notes (series):
Topic name: kh/doc-link-rerere

 Documentation/rerere-options.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
 	the current conflict to update the files in the working
 	tree, allow it to also update the index with the result of
 	resolution.  `--no-rerere-autoupdate` is a good way to
-	double-check what `rerere` did and catch potential
+	double-check what linkgit:git-rerere[1] did and catch potential
 	mismerges, before committing the result to the index with a
 	separate `git add`.

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f

Signature · 1 line
2.53.0.26.g2afa8602a26
#1 lore raw
Quoted 20 lines · On Mon, Feb 9, 2026 at 1:14 PM <[email protected]> wrote:

From: Kristoffer Haugsbakk <[email protected]>

Five commands include these options. Let’s link to the command so that the curious user can learn more about what “rerere” is about.

---

Notes (series):
Topic name: kh/doc-link-rerere

 Documentation/rerere-options.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/rerere-options.adoc +0 -0
index b0b920144a6..115882edab1 100644

Documentation/rerere-options.adoc line 9

Quoted 7 lines
Documentation/rerere-options.adoc +1 -1
@@ -4,6 +4,6 @@
        the current conflict to update the files in the working
        tree, allow it to also update the index with the result of
        resolution.  `--no-rerere-autoupdate` is a good way to
-       double-check what `rerere` did and catch potential
+       double-check what linkgit:git-rerere[1] did and catch potential
        mismerges, before committing the result to the index with a
        separate `git add`.

Minor: should this adjacent be linkgit too? I thought yes, but on second read we really are talking about the command.

Anyway, agreed that rerere should get linked. Thanks!

Signature · 1 line
D. Ben Knoble
#2 lore raw
Quoted 16 lines · D. Ben Knoble

Documentation/rerere-options.adoc line 9

Quoted 12 lines
Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
        the current conflict to update the files in the working
        tree, allow it to also update the index with the result of
        resolution.  `--no-rerere-autoupdate` is a good way to
-       double-check what `rerere` did and catch potential
+       double-check what linkgit:git-rerere[1] did and catch potential
        mismerges, before committing the result to the index with a
        separate `git add`.

Minor: should this adjacent be linkgit too? I thought yes, but on second read we really are talking about the command.

Quoted 1 line

Anyway, agreed that rerere should get linked. Thanks!

If you are happy with the end result, I would not complain, but which _other_ potential thing were you wondering if it should acquire "linkgit:"?

#4 lore raw
In reply to D. Ben Knoble
Quoted 17 lines · D. Ben Knoble

Documentation/rerere-options.adoc line 9

Quoted 13 lines

[snip]

Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
        the current conflict to update the files in the working
        tree, allow it to also update the index with the result of
        resolution.  `--no-rerere-autoupdate` is a good way to
-       double-check what `rerere` did and catch potential
+       double-check what linkgit:git-rerere[1] did and catch potential
        mismerges, before committing the result to the index with a
        separate `git add`.

Minor: should this adjacent be linkgit too? I thought yes, but on second read we really are talking about the command.

Quoted 1 line

Anyway, agreed that rerere should get linked. Thanks!

The git add? Good question. I considered it. At first it seemed like too much of a “apply this command”, if that even makes sense. But now I think rendering it as

separate git-add(1).

Makes sense.

Thanks for taking a look. :)

#3 lore raw
In reply to Junio C Hamano
Quoted 21 lines · Junio C Hamano
Quoted 7 lines · "D. Ben Knoble
Quoted 7 lines
Documentation/rerere-options.adoc +0 -0
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
      the current conflict to update the files in the working
      tree, allow it to also update the index with the result of
Quoted 8 lines

Documentation/rerere-options.adoc line 9

Quoted 5 lines
Documentation/rerere-options.adoc +1 -1
      resolution.  `--no-rerere-autoupdate` is a good way to
-       double-check what `rerere` did and catch potential
+       double-check what linkgit:git-rerere[1] did and catch potential
      mismerges, before committing the result to the index with a
      separate `git add`.

Minor: should this adjacent be linkgit too? I thought yes, but on second read we really are talking about the command. Anyway, agreed that rerere should get linked. Thanks!

Quoted 3 lines

If you are happy with the end result, I would not complain, but which _other_ potential thing were you wondering if it should acquire "linkgit:"?

Doh, typo: the « git add » as Kristoffer read my mind ;)

#5 lore raw

PATCH v2 1/1 doc: rerere-options.adoc: link to git-rerere(1)

In reply to [email protected]

From: Kristoffer Haugsbakk <[email protected]>

Five commands include these options. Let’s link to the command so that the curious user can learn more about what “rerere” is about.

It’s also better to consistently refer to things like e.g. “git-subcommand(1)” over git subcommand or subcommand.

Also apply the same treatment to git-add(1).

---

Notes (series):
Topic name (applied): kh/doc-rerere-options-xref

v2: Same for git-add(1) and expand on the more general point of it all.

 Documentation/rerere-options.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/rerere-options.adoc +2 -2
index b0b920144a6..4395fe05356 100644
@@ -4,6 +4,6 @@
 	the current conflict to update the files in the working
 	tree, allow it to also update the index with the result of
 	resolution.  `--no-rerere-autoupdate` is a good way to
-	double-check what `rerere` did and catch potential
+	double-check what linkgit:git-rerere[1] did and catch potential
 	mismerges, before committing the result to the index with a
-	separate `git add`.
+	separate linkgit:git-add[1].

Interdiff against v1:
diff --git a/Documentation/rerere-options.adoc b/Documentation/rerere-options.adoc index 115882edab1..4395fe05356 100644
--- a/Documentation/rerere-options.adoc
+++ b/Documentation/rerere-options.adoc
@@ -6,4 +6,4 @@
resolution. --no-rerere-autoupdate is a good way to double-check what linkgit:git-rerere[1] did and catch potential mismerges, before committing the result to the index with a
- separate git add.
+ separate linkgit:git-add[1].

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f

Signature · 1 line
2.53.0.26.g2afa8602a26
#6 lore raw
Quoted 48 lines · On Tue, Feb 10, 2026 at 2:57 PM <[email protected]> wrote:

From: Kristoffer Haugsbakk <[email protected]>

Five commands include these options. Let’s link to the command so that the curious user can learn more about what “rerere” is about.

It’s also better to consistently refer to things like e.g. “git-subcommand(1)” over git subcommand or subcommand.

Also apply the same treatment to git-add(1).

---

Notes (series):
Topic name (applied): kh/doc-rerere-options-xref

v2: Same for git-add(1) and expand on the more general point of it all.

 Documentation/rerere-options.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/rerere-options.adoc +2 -2
index b0b920144a6..4395fe05356 100644
@@ -4,6 +4,6 @@
        the current conflict to update the files in the working
        tree, allow it to also update the index with the result of
        resolution.  `--no-rerere-autoupdate` is a good way to
-       double-check what `rerere` did and catch potential
+       double-check what linkgit:git-rerere[1] did and catch potential
        mismerges, before committing the result to the index with a
-       separate `git add`.
+       separate linkgit:git-add[1].

Interdiff against v1:
diff --git a/Documentation/rerere-options.adoc b/Documentation/rerere-options.adoc index 115882edab1..4395fe05356 100644
--- a/Documentation/rerere-options.adoc
+++ b/Documentation/rerere-options.adoc
@@ -6,4 +6,4 @@
resolution. --no-rerere-autoupdate is a good way to double-check what linkgit:git-rerere[1] did and catch potential mismerges, before committing the result to the index with a
- separate git add.
+ separate linkgit:git-add[1].

Quoted 3 lines

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f --
2.53.0.26.g2afa8602a26

Excellent, thanks for also including the rationale. LGTM!

Signature · 1 line
D. Ben Knoble
#7 lore raw
In reply to [email protected]

Le 09/02/2026 à 19:13, [email protected] a écrit :

Quoted 27 lines

From: Kristoffer Haugsbakk <[email protected]>

Five commands include these options. Let’s link to the command so that the curious user can learn more about what “rerere” is about.

---

Notes (series):
Topic name: kh/doc-link-rerere

 Documentation/rerere-options.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
 	the current conflict to update the files in the working
 	tree, allow it to also update the index with the result of
 	resolution.  `--no-rerere-autoupdate` is a good way to
-	double-check what `rerere` did and catch potential
+	double-check what linkgit:git-rerere[1] did and catch potential
 	mismerges, before committing the result to the index with a
 	separate `git add`.
Quoted 1 line

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f

I'm not fond of introducing linkgit macro that can create auto-reference in manual pages. At the moment, we need to use conditional inclusion in the manual pages source, but I wonder if we could simply filter out the links in the macro itself.

#8 lore raw
Quoted 13 lines · Jean-Noël Avila
Quoted 13 lines
Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
 	the current conflict to update the files in the working
 	tree, allow it to also update the index with the result of
 	resolution.  `--no-rerere-autoupdate` is a good way to
-	double-check what `rerere` did and catch potential
+	double-check what linkgit:git-rerere[1] did and catch potential
 	mismerges, before committing the result to the index with a
 	separate `git add`.
Quoted 6 lines
Quoted 1 line

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f

I'm not fond of introducing linkgit macro that can create auto-reference in manual pages. At the moment, we need to use conditional inclusion in the manual pages source, but I wonder if we could simply filter out the links in the macro itself.

FWIW, before deciding to accept the patch, I did check if git-rerere.adoc included this file (it didn't), but if we can make the macro smarter to do so, it would be great, as that would avoid people including this file there later without realizing that they now need to make the mark-up conditional.

This particular patch does not have to be blocked waiting for such an improvement, though, right?

#9 lore raw

Le 11/02/2026 à 16:43, Junio C Hamano a écrit :

Quoted 22 lines
Quoted 13 lines · Jean-Noël Avila
Quoted 13 lines
Documentation/rerere-options.adoc +1 -1
index b0b920144a6..115882edab1 100644
@@ -4,6 +4,6 @@
 	the current conflict to update the files in the working
 	tree, allow it to also update the index with the result of
 	resolution.  `--no-rerere-autoupdate` is a good way to
-	double-check what `rerere` did and catch potential
+	double-check what linkgit:git-rerere[1] did and catch potential
 	mismerges, before committing the result to the index with a
 	separate `git add`.
Quoted 6 lines
Quoted 1 line

base-commit: 67ad42147a7acc2af6074753ebd03d904476118f

I'm not fond of introducing linkgit macro that can create auto-reference in manual pages. At the moment, we need to use conditional inclusion in the manual pages source, but I wonder if we could simply filter out the links in the macro itself.

Quoted 5 lines

FWIW, before deciding to accept the patch, I did check if git-rerere.adoc included this file (it didn't), but if we can make the macro smarter to do so, it would be great, as that would avoid people including this file there later without realizing that they now need to make the mark-up conditional.

Ah, adding the options of rerere in git-rerere manual page is then something that will need to be done when reworking it.

Quoted 4 lines

This particular patch does not have to be blocked waiting for such an improvement, though, right?

No it doesn't. I don't intend to scratch this itch soon.