Skip to contentSkip to conversation

doc: git-rebase: update incompatible options

PATCH Superseded Omri Sarig 4 participants 12 messages Oct 25 – Nov 10 Documentation

lore
Share & tools
lore

Omri Sarig

author
#0 lore raw

PATCH v4 1/1 doc: git-rebase: update incompatible options

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which removes all incompatibility references to --ignore-date, --reset-author-date and --signoff.

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but it is not mentioned in the INCOMPATIBLE OPTIONS section.

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

Changes in V2:
- Update commit message per the review comments from Phillip (Thanks for the review!).
- Add --onto to INCOMPATIBLE OPTIONS.

Changes in V3:
- Downcase "Update" in commit title

Changes in V4:
- Update the commit message per review comments.
- Rebase the patch to be compatible with the maint branch.

The main difference in git-rebase.adoc between the maintenance branch and the main branch was created in 2fc11e3382 (doc: add more AsciiDoc cross-references, 2026-09-25), which turned all the "See also..." lines into links. This created conflicts with the removed lines, which I've solved.
I was not sure what is the correct way to add the new INCOMPATIBLE OPTION line in this patch. As I see it, this line can be aligned with the current version of the file (without the link), or "correct" for the final version of the file (with the link). Here, I opted to adding this line in the aligned form for the maintenance branch. This will require some work when merging this change to the main branch, as this new line will have to be updated.
I was not sure if this is the correct strategy. If the right way to do it, is to add the "final" version of the line, please let me know, and I'll provide a V5.

Thank you for the support in helping me get this through.

 Documentation/git-rebase.adoc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -6
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
 See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
 	and this option would override that behavior, allowing commits
 	with empty messages to be rebased.  Now commits with an empty
 	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 -m::
 --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
 	Instead of using the author date of the original commit, use
 	the current time as the	author date of the rebased commit.  This
 	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --signoff::
 	Add a `Signed-off-by` trailer to all the rebased commits. Note
 	that if `--interactive` is given then only commits marked to be
 	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed
#1 lore raw

[administrivia]
Please send subsequent rerolls as direct replies to the v4 patch message (git send-email --in-reply-to= ).

Quoted 12 lines · Omri Sarig

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which removes all incompatibility references to --ignore-date, --reset-author-date and --signoff.

Okay. "INCOMPATIBLE OPTIONS" says nothing about "--allow-empty-message", "--ignore-date", "--reset-author-date", and "--signoff", so links from those sections to incomp opts have to go.

Well observed!

Quoted 4 lines

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but it is not mentioned in the INCOMPATIBLE OPTIONS section.

"--onto" is mentioned in incomp opts, but the description doesn't link there.

Just steal the correct wording from the v3 where you had it already right. :-)

Quoted 20 lines

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

Changes in V2:
- Update commit message per the review comments from Phillip (Thanks for the review!).
- Add --onto to INCOMPATIBLE OPTIONS.

Changes in V3:
- Downcase "Update" in commit title

Changes in V4:
- Update the commit message per review comments.
- Rebase the patch to be compatible with the maint branch.

Quoted 10 lines

The main difference in git-rebase.adoc between the maintenance branch and the main branch was created in 2fc11e3382 (doc: add more AsciiDoc cross-references, 2026-09-25), which turned all the "See also..." lines into links. This created conflicts with the removed lines, which I've solved.
I was not sure what is the correct way to add the new INCOMPATIBLE OPTION line in this patch. As I see it, this line can be aligned with the current version of the file (without the link), or "correct" for the final version of the file (with the link). Here, I opted to adding this line in the aligned form for the maintenance branch. This will require some work when merging this change to the main branch, as this new line will have to be updated.

Excellent! The patch now applies cleanly to 'maint'. When this topic has settled down (i.e. merged to 'next'), you would perhaps like to send a followup patch as a separate topic. Such patch would look something like this, if you are interested:

Documentation/git-rebase.adoc +2 -2
index 6190479966..e9c463da57 100644
@@ -216,13 +216,13 @@ OPTIONS
 	existing branch name.
 +
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
 +
-See also INCOMPATIBLE OPTIONS below.
+See also <<INCOMPATIBLE_OPTIONS,INCOMPATIBLE OPTIONS>> below.
 
 See <<TRANSPLANTING,TRANSPLANTING A TOPIC BRANCH WITH --ONTO>>
 above for examples.
 
 --keep-base::
 	Set the starting point at which to create the new commits to the
@@ -497,13 +497,13 @@ applying (in terms of the author date).
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed
 	via linkgit:git-interpret-trailers[1]. This option implies
 	`--force-rebase`.
 +
-See also INCOMPATIBLE OPTIONS below.
+See also <<INCOMPATIBLE_OPTIONS,INCOMPATIBLE OPTIONS>> below.
 
 -i::
 --interactive::
 	Make a list of the commits which are about to be rebased.  Let the
 	user edit that list before rebasing.  This mode can also be used to
 	split commits (see <<SPLITTING_COMMITS,SPLITTING COMMITS>> below).
Quoted 37 lines

I was not sure if this is the correct strategy. If the right way to do it, is to add the "final" version of the line, please let me know, and I'll provide a V5.

Thank you for the support in helping me get this through.

 Documentation/git-rebase.adoc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -4
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
 See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
 	and this option would override that behavior, allowing commits
 	with empty messages to be rebased.  Now commits with an empty
 	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 -m::
 --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
 	Instead of using the author date of the original commit, use
 	the current time as the	author date of the rebased commit.  This
 	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.

Documentation/git-rebase.adoc applying (in terms of the author date). · line 497

Quoted 10 lines
Documentation/git-rebase.adoc +0 -2
 
 --signoff::
 	Add a `Signed-off-by` trailer to all the rebased commits. Note
 	that if `--interactive` is given then only commits marked to be
 	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed

The changes are good to go, but see my nit for the commit log message.

--Tuomas

author
#2 lore raw

PATCH v5 1/1 doc: git-rebase: update incompatible options

In reply to Omri Sarig

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which removes all incompatbiilty references to --ignore-date, --reset-author-date and --signoff.

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but doesn't link to the INCOMPATIBLE OPTIONS section.

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

Changes in V2:
- Update commit message per the review comments from Phillip (Thanks for the review!).
- Add --onto to INCOMPATIBLE OPTIONS.

Changes in V3:
- Downcase "Update" in commit title

Changes in V4:
- Update the commit message per review comments.
- Rebase the patch to be compatible with the maint branch.

Changes in V5:
- Update commit message, making it clear that the --onto option was only missing the INCOMPATIBLE OPTIONS link.

 Documentation/git-rebase.adoc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -6
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
 See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
 	and this option would override that behavior, allowing commits
 	with empty messages to be rebased.  Now commits with an empty
 	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 -m::
 --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
 	Instead of using the author date of the original commit, use
 	the current time as the	author date of the rebased commit.  This
 	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --signoff::
 	Add a `Signed-off-by` trailer to all the rebased commits. Note
 	that if `--interactive` is given then only commits marked to be
 	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed
#3 lore raw
Quoted 16 lines · Omri Sarig

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which removes all incompatbiilty references to --ignore-date, --reset-author-date and --signoff.

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but doesn't link to the INCOMPATIBLE OPTIONS section.

Quoted 8 lines

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

The range-diff against v4 makes it clear that v5 only changed the commit message. Unfortunately, the reroll introduced a new typo:

section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which
- removes all incompatibility references to `--ignore-date,
+ removes all incompatbiilty references to `--ignore-date,
--reset-author-date and --signoff`.

Otherwise v5 looks good to me. Thanks!

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but
- it is not mentioned in the INCOMPATIBLE OPTIONS section.
+ doesn't link to the INCOMPATIBLE OPTIONS section.

#4 lore raw
Quoted 6 lines · Tuomas Ahola
Quoted 2 lines

Thank you for the review!

The range-diff against v4 makes it clear that v5 only changed the commit message. Unfortunately, the reroll introduced a new typo:

Quoted 8 lines

section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which
- removes all incompatibility references to `--ignore-date,
+ removes all incompatbiilty references to `--ignore-date,
--reset-author-date and --signoff`.

Otherwise v5 looks good to me. Thanks!

I do not quite get what "all incompatibility references" mean, though, with or without typofixes.

Thanks.

Quoted 5 lines

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but
- it is not mentioned in the INCOMPATIBLE OPTIONS section.
+ doesn't link to the INCOMPATIBLE OPTIONS section.

#5 lore raw
Quoted 15 lines · Junio C Hamano
Quoted 13 lines · Tuomas Ahola
Quoted 2 lines

Thank you for the review!

The range-diff against v4 makes it clear that v5 only changed the commit message. Unfortunately, the reroll introduced a new typo:

section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option from rebase, which
- removes all incompatibility references to `--ignore-date,
+ removes all incompatbiilty references to `--ignore-date,
--reset-author-date and --signoff`.

Quoted 5 lines
Quoted 1 line

Otherwise v5 looks good to me. Thanks!

I do not quite get what "all incompatibility references" mean, though, with or without typofixes.

Um, yeah. I agree. Perhaps something like this would scan better?

- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option which was the only one at odds with --ignore-date, --reset-author-date and --signoff.

Quoted 7 lines

Thanks.

Quoted 5 lines

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but
- it is not mentioned in the INCOMPATIBLE OPTIONS section.
+ doesn't link to the INCOMPATIBLE OPTIONS section.

author
#6 lore raw

PATCH v6 1/1 doc: git-rebase: update incompatible options

In reply to Omri Sarig

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option which was the only one at odds with --ignore-date, --reset-author-date and --signoff.

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but doesn't link to the INCOMPATIBLE OPTIONS section.

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

Changes in V2:
- Update commit message per the review comments from Phillip (Thanks for the review!).
- Add --onto to INCOMPATIBLE OPTIONS.

Changes in V3:
- Downcase "Update" in commit title

Changes in V4:
- Update the commit message per review comments.
- Rebase the patch to be compatible with the maint branch.

Changes in V5:
- Update commit message, making it clear that the --onto option was only missing the INCOMPATIBLE OPTIONS link.

Changes in V6:
- Update the commit message per the review comments, making it clearer.

 Documentation/git-rebase.adoc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -6
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
 See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
 	and this option would override that behavior, allowing commits
 	with empty messages to be rebased.  Now commits with an empty
 	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 -m::
 --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
 	Instead of using the author date of the original commit, use
 	the current time as the	author date of the rebased commit.  This
 	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --signoff::
 	Add a `Signed-off-by` trailer to all the rebased commits. Note
 	that if `--interactive` is given then only commits marked to be
 	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed
author
#7 lore raw
Quoted 74 lines · Omri Sarig

A few options in the rebase manual page link to the "INCOMPATIBLE OPTIONS" section, but they are no longer incompatible with any other option:
- Commit 1a66d8c6f6 (rebase: remove --allow-empty-message from incompatible opts, 2023-01-25) removed "--allow-empty-message" from the INCOMPATIBLE OPTIONS section, but did not remove the link to that section from the option description.
- Commit a74b35081c (rebase: drop support for --preserve-merges, 2021-09-07) removed the --preserve-merges option which was the only one at odds with --ignore-date, --reset-author-date and --signoff.

Additionally, since 414d924beb (rebase: teach rebase --keep-base, 2019-08-27) the --onto option is incompatible with --keep-base, but doesn't link to the INCOMPATIBLE OPTIONS section.

Update the description of these options, to have correct references to the INCOMPATIBLE OPTIONS section.

---

Thank you for the review!

Changes in V2:
- Update commit message per the review comments from Phillip (Thanks for the review!).
- Add --onto to INCOMPATIBLE OPTIONS.

Changes in V3:
- Downcase "Update" in commit title

Changes in V4:
- Update the commit message per review comments.
- Rebase the patch to be compatible with the maint branch.

Changes in V5:
- Update commit message, making it clear that the --onto option was only missing the INCOMPATIBLE OPTIONS link.

Changes in V6:
- Update the commit message per the review comments, making it clearer.

  Documentation/git-rebase.adoc | 8 ++------
  1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -4
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
  As a special case, you may use "A\...B" as a shortcut for the
  merge base of A and B if there is exactly one merge base. You can
  leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
  See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
  	and this option would override that behavior, allowing commits
  	with empty messages to be rebased.  Now commits with an empty
  	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
  -m::
  --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
  	Instead of using the author date of the original commit, use
  	the current time as the	author date of the rebased commit.  This
  	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.

Documentation/git-rebase.adoc applying (in terms of the author date). · line 497

Quoted 10 lines
Documentation/git-rebase.adoc +0 -2
 
  --signoff::
  	Add a `Signed-off-by` trailer to all the rebased commits. Note
  	that if `--interactive` is given then only commits marked to be
  	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
  --trailer=<trailer>::
  	Append the given trailer to every rebased commit message, processed

Hi,

This patch has been sitting around for some time without a review.

Anyone that is interested in reviewing it? Anything more I can do from my side to help this process?

Thanks!
Omri

#8 lore raw
In reply to Omri Sarig

Documentation/git-rebase.adoc OPTIONS · line 221

Quoted 6 lines
Documentation/git-rebase.adoc +2 -0
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.

Elsewhere in the document we're now linking to the section like this, since 2fc11e33820:

See also <<INCOMPATIBLE_OPTIONS,INCOMPATIBLE OPTIONS>> below.

I think it would be good to keep things consistent.

Also it would be good to try to convert up all remaining internal links that aren't using the << >>, I may try to do that at some point.

author
#9 lore raw
Quoted 6 lines · Julia Evans

Documentation/git-rebase.adoc OPTIONS · line 221

Quoted 6 lines
Documentation/git-rebase.adoc +2 -0
@@ -217,6 +217,8 @@ OPTIONS
  As a special case, you may use "A\...B" as a shortcut for the
  merge base of A and B if there is exactly one merge base. You can
  leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.

Thank you for looking at it!

Quoted 2 lines

Elsewhere in the document we're now linking to the section like this, since 2fc11e33820:

As per Junio's request (https://lore.kernel.org/git/[email protected]/), the current version is built over the 'maint' branch, and therefore does not have 2fc11e33820 available yet.

I've discussed  whether this update should include the links, or not include them, and understood from Tuomas that the right way to do it here, is to keep the file consistent with itself in the maintenance branch version of it, and update the links everywhere in a future patch (discussed here: https://lore.kernel.org/git/20261029080317.wWchf%[email protected]/).
Additionally, the INCOMPATIBLE OPTIONS section cannot be a target to a link yet, so this won't apply cleanly to the 'maint' branch with these links.

Please let me know if I should update these links, or keep them consistent with the rest of the file in the 'maint' branch.

Quoted 7 lines

See also <<INCOMPATIBLE_OPTIONS,INCOMPATIBLE OPTIONS>> below.

I think it would be good to keep things consistent.

Also it would be good to try to convert up all remaining internal links that aren't using the << >>, I may try to do that at some point.

As far as I can see, the only place that does not have a link to the INCOMPATIBLE OPTIONS section in the master branch is the --trailer option.

If you want me to, I'll happily update the added section, together with the trailer options, once both are merge.

Thanks,
Omri

#10 lore raw
Quoted 21 lines
Quoted 2 lines
Quoted 2 lines

+See also INCOMPATIBLE OPTIONS below.

Thank you for looking at it!

Quoted 2 lines

Elsewhere in the document we're now linking to the section like this, since 2fc11e33820:

As per Junio's request
(https://lore.kernel.org/git/[email protected]/), the current version is built over the 'maint' branch, and therefore does not have 2fc11e33820 available yet.

I've discussed  whether this update should include the links, or not include them, and understood from Tuomas that the right way to do it here, is to keep the file consistent with itself in the maintenance branch version of it, and update the links everywhere in a future patch (discussed here:
https://lore.kernel.org/git/20261029080317.wWchf%[email protected]/).
Additionally, the INCOMPATIBLE OPTIONS section cannot be a target to a link yet, so this won't apply cleanly to the 'maint' branch with these links.

Quoted 2 lines

Please let me know if I should update these links, or keep them consistent with the rest of the file in the 'maint' branch.

Ah, I hadn't read that part of the thread, sorry about that! I'm not familiar with the process around the maint branch so I definitely don't have opinions about how that should work.

Thanks for explaining it!

#11 lore raw
In reply to Omri Sarig
Quoted 34 lines · Omri Sarig

Changes in V6:
- Update the commit message per the review comments, making it clearer.

 Documentation/git-rebase.adoc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
Documentation/git-rebase.adoc +2 -4
index f6c22d1598..f1f675d311 100644
@@ -217,6 +217,8 @@ OPTIONS
 As a special case, you may use "A\...B" as a shortcut for the
 merge base of A and B if there is exactly one merge base. You can
 leave out at most one of A and B, in which case it defaults to HEAD.
++
+See also INCOMPATIBLE OPTIONS below.
 
 See TRANSPLANTING A TOPIC BRANCH WITH --ONTO above for examples.
 
@@ -332,8 +334,6 @@ See also INCOMPATIBLE OPTIONS below.
 	and this option would override that behavior, allowing commits
 	with empty messages to be rebased.  Now commits with an empty
 	message do not cause rebasing to halt.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 -m::
 --merge::
@@ -487,15 +487,11 @@ applying (in terms of the author date).
 	Instead of using the author date of the original commit, use
 	the current time as the	author date of the rebased commit.  This
 	option implies `--force-rebase`.
-+
-See also INCOMPATIBLE OPTIONS below.

Documentation/git-rebase.adoc applying (in terms of the author date). · line 497

Quoted 10 lines
Documentation/git-rebase.adoc +0 -2
 
 --signoff::
 	Add a `Signed-off-by` trailer to all the rebased commits. Note
 	that if `--interactive` is given then only commits marked to be
 	picked, edited or reworded will have the trailer added.
-+
-See also INCOMPATIBLE OPTIONS below.
 
 --trailer=<trailer>::
 	Append the given trailer to every rebased commit message, processed

Looking good. Let's mark it as ready for 'next'.