From: Phillip Wood Date: Sun, 17 Jun 2018 15:38:27 GMT Subject: Re: [RFC PATCH v2 1/7] git-rebase.txt: document incompatible options Message-ID: <13ccb4d9-582b-d26b-f595-59cb0b7037ab@talktalk.net> In-Reply-To: <20180617055856.22838-2-newren@gmail.com> Hi Elijah On 17/06/18 06:58, Elijah Newren wrote: > git rebase has many options that only work with one of its three backends. > It also has a few other pairs of incompatible options. Document these. > > Signed-off-by: Elijah Newren > --- > Documentation/git-rebase.txt | 84 ++++++++++++++++++++++++++++++++---- > 1 file changed, 76 insertions(+), 8 deletions(-) > > diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt > index 0e20a66e73..adccc15284 100644 > --- a/Documentation/git-rebase.txt > +++ b/Documentation/git-rebase.txt > @@ -243,11 +243,15 @@ leave out at most one of A and B, in which case it defaults to HEAD. > --keep-empty:: > Keep the commits that do not change anything from its > parents in the result. > ++ > +See also INCOMPATIBLE OPTIONS below. > > --allow-empty-message:: > By default, rebasing commits with an empty message will fail. > This option overrides that behavior, allowing commits with empty > messages to be rebased. > ++ > +See also INCOMPATIBLE OPTIONS below. > > --skip:: > Restart the rebasing process by skipping the current patch. > @@ -271,6 +275,8 @@ branch on top of the branch. Because of this, when a merge > conflict happens, the side reported as 'ours' is the so-far rebased > series, starting with , and 'theirs' is the working branch. In > other words, the sides are swapped. > ++ > +See also INCOMPATIBLE OPTIONS below. > > -s :: > --strategy=:: > @@ -280,8 +286,10 @@ other words, the sides are swapped. > + > Because 'git rebase' replays each commit from the working branch > on top of the branch using the given strategy, using > -the 'ours' strategy simply discards all patches from the , > +the 'ours' strategy simply empties all patches from the , > which makes little sense. > ++ > +See also INCOMPATIBLE OPTIONS below. > > -X :: > --strategy-option=:: > @@ -289,6 +297,8 @@ which makes little sense. > This implies `--merge` and, if no strategy has been > specified, `-s recursive`. Note the reversal of 'ours' and > 'theirs' as noted above for the `-m` option. > ++ > +See also INCOMPATIBLE OPTIONS below. > > -S[]:: > --gpg-sign[=]:: > @@ -324,6 +334,8 @@ which makes little sense. > and after each change. When fewer lines of surrounding > context exist they all must match. By default no context is > ever ignored. > ++ > +See also INCOMPATIBLE OPTIONS below. > > -f:: > --force-rebase:: > @@ -355,19 +367,22 @@ default is `--no-fork-point`, otherwise the default is `--fork-point`. > --whitespace=