🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1794

Re: [PATCH v4] doc: git-rebase: update incompatible options

#1794
From: Tuomas Ahola
Date: Thu, 29 Oct 2026 08:03
159 lines
15776 bytes
[administrivia]
  Please send subsequent rerolls as direct replies to the v4 patch message
  (git send-email --in-reply-to= ).

Omri Sarig <omri.sarig13@gmail.com> wrote:

> 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!

> 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. :-)

> Update the description of these options, to have correct references to
> the INCOMPATIBLE OPTIONS section.
> 
> Signed-off-by: Omri Sarig <omri.sarig13@gmail.com>
> ---
> 
> 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.

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:


diff --git a/Documentation/git-rebase.adoc b/Documentation/git-rebase.adoc
index 6190479966..e9c463da57 100644
--- a/Documentation/git-rebase.adoc
+++ b/Documentation/git-rebase.adoc
@@ -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).


> 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(-)
> 
> diff --git a/Documentation/git-rebase.adoc b/Documentation/git-rebase.adoc
> index f6c22d1598..f1f675d311 100644
> --- a/Documentation/git-rebase.adoc
> +++ b/Documentation/git-rebase.adoc
> @@ -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

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

--Tuomas
Technical Details
Message-ID: <20261029080317.wWchf%taahol@utu.fi>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73719-linux-kernel-git=dewy.ru
References: <20261025110759.204336-1-omri.sarig13@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-73719-linux-kernel-git=dewy.ru
From: taahol@utu.fi (Tuomas Ahola)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v4] doc: git-rebase: update incompatible options
Date: Thu, 29 Oct 2026 10:03:17 +0200
Organization: Usenet Network
Message-ID: <20261029080317.wWchf%taahol@utu.fi>
References: <20261025110759.204336-1-omri.sarig13@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
	logging-data="1962120"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:auGr8u5HJnKthEcZWLybkBFQwqo= sha256:vxH6Qs1OgsouBTSS+T/53iox+yReqScCnApvdMv6m4U=
	sha1:uubHnJ09TRfiAqmSBjwFMAtmRI4= sha256:hlEI6IYj5di7HNC1OgMKXFzz6smgerruauNTF283+Rc=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id C45E2125C5A; Thu, 29 Oct 2026 11:04:06 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.148
X-Spam-Status: No, score=-3.148 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=utu.fi
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 2c1ElwX2UkXv;
	Thu, 29 Oct 2026 11:04:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=git+bounces-73719-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=utu.fi
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 0AA22125C44; Thu, 29 Oct 2026 11:03:53 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 99BA2601396; Thu, 29 Oct 2026 08:03:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1793261028;
	b=TZwAUhXRpfz/27TvpN93BnkpKVuOij62WMmzCB6nMW1RDaj/obXmC2xRxTa/GyKhfivb
	 oRrFyYXCX20k7JzyNk1nO0+pA7p0WNjVNZlnpluoYb8dde1irFDNoTXeAYFOuPExWWyNF
	 E6FHgf+KPuDUibiOrvvwGlSNG8I7fr7c8AZY0sW/4geHKRjDstVnInFGrpb0ccrxZxQp5
	 +4TbI9alXc/0dtgXPB0lbFDkvNHMEl5gshhV9l43rkBot3Eodg7uW7ABA/w0IYaKKG2/4
	 JOg4yz8b43kLN90aKFHGMKRhsUfSfafIoQfck1HqW3rmXK+OZaeVmFjlyfwinvYqaZw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793261028;
	h=X-Original-To:Received:DMARC-Filter:Received:Received:Received:
	 Received:Date:From:To:CC:Subject:Message-ID:In-Reply-To:References:
	 User-Agent:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 X-ClientProxiedBy:X-FEAS-BEC-Info:X-FEAS-Client-IP:
	 X-FE-Last-Public-Client-IP:X-FE-Policy-ID:X-FE-Hostname:
	 DKIM-Signature;
	bh=jX9N1N/VmD/XLmWZePAN+lsSYbAshwUQCwQYvGyNhYQ=;
	b=wqQZNe3/p6fM8aH2gSzAgw75LTBP+VLEWBy7xhN+f2FUDmPGrAel01SlbRIlsF0UM5I6
	 w6WjTCCUJj+I6jt4VGGHqavfbVEDATO/n1eWbcyzErv6n8Fpl8m5xGvYltuREqzvPuS1n
	 9VOFhuRxkmBwKIpHnFUkUbLzoZ0yuNYxpSRqDbJtL+DUmUNyoVQjKXdJb1kCCnYu3rliL
	 EMPP57nvVIxwz/ZV9b0MY9rlYlMfgBq9KPz9VdHZp7lHif7eXfVHKv9EE6U8RXjRzfqyc
	 r0TNelnC2yH+w3FXRvg3pPWKcXmKFcWeAhxQn+ASSzzKDVVfIFXimbiwoJuxYTzrgwQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=ZWUdTaWy;
	dmarc=pass header.from=utu.fi;
	spf=pass smtp.mailfrom=utu.fi;
	arc=fail smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 906A3606A32E;
	Thu, 29 Oct 2026 08:03:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=utu.fi header.i=@utu.fi header.a=rsa-sha256 header.s=out-utu-v3 header.b=ZWUdTaWy
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=130.232.247.4
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793261027;
	b=LylFaAT0MuKPNvUDfypX7QJh3oQssHFrzJDuR8N2X7NqVZgVkCipQpYWdrzcXQ+NltCF
	 r5cl+yg8cfOdvYXl0fUbqt8/vxF5fu6HzmtajfIJQvS+3AOiPq6Bn+plyU53VPoUKnAuP
	 zekh7crB3jBJKN8aCtxiDjBw6IXTONPzfRf/aAdD2EHiTSdD4HsS3N2sAXHNrQhhJcs9w
	 xdp+hGnnrJjdLr6UuLAPCb05NaWqU3CqMr/5rK+NZYNT4FHVj6BAycKV5WP1WBcDLbm/u
	 nSssVhsjjFjnrXaWqMAkGjLM2cL3jDvguwnBfIAUDakCQQPbHuQX54RkBEbc7ia1c9A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793261027;
	h=DMARC-Filter:Received:Received:Received:Received:Date:From:To:CC:
	 Subject:Message-ID:In-Reply-To:References:User-Agent:MIME-Version:
	 Content-Type:X-Originating-IP:X-ClientProxiedBy:X-FEAS-BEC-Info:
	 X-FEAS-Client-IP:X-FE-Last-Public-Client-IP:X-FE-Policy-ID:
	 X-FE-Hostname:DKIM-Signature;
	bh=jX9N1N/VmD/XLmWZePAN+lsSYbAshwUQCwQYvGyNhYQ=;
	b=X8E4ND5Awfxq2iSlaCcbLMtKye+QgkLaK2MOR8+juL7K3lTRfn2aeRM7Wy17QuViwMVh
	 F1akTGUq2UgTSdDPQFpc4ptzncdKKrkss2pFNCyjE2eK/92wnYFsV9Y5KifYurGsK/0r0
	 pAVEyrgr8kh80uIBG4+viA6+skFgG9s1DaWtwNdPzD5lJnXHJWOQa0ybzFPdt0HoQlBQE
	 8Oq2gXqszNgUl7z6lR8yodokitR0/i+PSfqrCayulDRC7lTPC7jO5THftKf6u+PQXzbYo
	 2TtJtzNg7+VQqg8dfiO1CSZz2zF+HWJUJHaPCJNOvz/k0RWDm1Z309gt3/L3iJzfXHA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=utu.fi;
	spf=pass smtp.mailfrom=utu.fi;
	arc=none smtp.remote-ip=130.232.247.4
X-Received: from fortymile.utu.fi (fortymile.utu.fi [130.232.247.4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09461606A31D
	for <git@vger.kernel.org>; Thu, 29 Oct 2026 08:03:44 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 09461606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=utu.fi
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=utu.fi
X-Received: from smtp-03.utu.fi (smtp-03.utu.fi [130.232.207.30])
	by fortymile.utu.fi  with ESMTPS id 69T83Htp004981-69T83Htr004981
	(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO);
	Thu, 29 Oct 2026 10:03:18 +0200
X-Received: from ex19-06.utu.fi ([130.232.247.46])
	by smtp-03.utu.fi with esmtps  (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
	(Exim 4.95)
	(envelope-from <taahol@utu.fi>)
	id 1xML6T-00C8bm-MC;
	Thu, 29 Oct 2026 10:03:17 +0200
X-Received: from localhost (86.50.95.90) by ex19-06.utu.fi (130.232.247.46) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Thu, 29 Oct
 2026 10:03:17 +0200
X-Received: from localhost (localhost [local])
	by localhost (OpenSMTPD) with ESMTPA id c1646631;
	Thu, 29 Oct 2026 08:03:17 +0000 (UTC)
X-CC: <git@vger.kernel.org>, Li Chen <me@linux.beauty>, Julia Evans
	<julia@jvns.ca>, Junio C Hamano <gitster@pobox.com>, Phillip Wood
	<phillip.wood@dunelm.org.uk>
X-In-Reply-To: <20261025110759.204336-1-omri.sarig13@gmail.com>
X-User-Agent: s-nail v14.9.22
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-ClientProxiedBy: ex19-11.utu.fi (130.232.247.51) To ex19-06.utu.fi
 (130.232.247.46)
X-FEAS-BEC-Info: WlpIGw0aAQkEARIJHAEHBlJSCRoLAAEeDUhZUEhYSFhIWkhZXkguLT4lWFxYWFhYWFBeUVxfSFhISFlbSBwJCQAHBCgdHB1GDgFIWUhaXkgYAAEEBAEYRh8HBwwoDB0G
 DQQFRgcaD0YdA0hYSFpIWVxIWVtYRlpbWkZaWF9GW1hIUEhYSFhIXkhYSFhIWEhZUUgPARwoHg8NGkYDDRoGDQRGBxoPSFhIWV9IDwEcGxwNGigYBwoHEEYLBwVIWEhZ
 W0gCHQQBCSgCHgYbRgsJSFhIWV1IBQ0oBAEGHRBGCg0JHRwRSFhIWlpIBwUaAUYbCRoBD1lbKA8FCQEERgsHBUhYSFpeSBgAAQQEARhGHwcHDCgMHQYNBAVGBxoPRh0D
 SFg=
X-FEAS-Client-IP: 130.232.207.30
X-FE-Last-Public-Client-IP: 130.232.207.30
X-FE-Policy-ID: 3:5:2:SYSTEM
X-FE-Hostname: fortymile.utu.fi
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; d=utu.fi; s=out-utu-v3; c=relaxed/relaxed;
 h=date:from:to:cc:subject:message-id:references:mime-version:content-type;
 bh=jX9N1N/VmD/XLmWZePAN+lsSYbAshwUQCwQYvGyNhYQ=;
 b=ZWUdTaWy7neKQ7V9g3dZcqCNl0UJOtadBJYzLnzdoP9Le6hdgd8wdAfnCjl6XMwX9jszLT0yR8ld
	38TvyXC4QPrZFvKaZ6S/zT4sZGYaDo66JkAqyOreP+ZPAHKflETnKMWcBKn1UVvvyf+YeFOpMZJr
	prvXGVJwXRt7xgYBSJbmh38gRZYeQiLK+D5NLZRYoyJMt//R/gzdYc/gAHu5hIzvkgmD7N22dGaF
	oJ5C6GOgWQ9sbK0LKXi7Mi7vZtKiNxIDl12GQMlWoOL4bpHXOP/KqOs6v7TVDl70QPX6qY5a9wLm
	gIF6U9NsJMl26Mket/EHN30V7AOnpfOVH2w3iQ==