From: Junio C Hamano Date: Mon, 11 Mar 2019 07:16:26 +0000 (+0900) Subject: Merge branch 'js/rebase-recreate-merge' X-Git-Tag: v2.22.0-rc0~148 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a07baf33e37ddeb82778e572aea2d506d970b5ab?ds=inline;hp=-c Merge branch 'js/rebase-recreate-merge' Docfix. * js/rebase-recreate-merge: rebase docs: fix "gitlink" typo --- a07baf33e37ddeb82778e572aea2d506d970b5ab diff --combined Documentation/git-rebase.txt index 5629ba4c5d,dfca489e69..6363d674b7 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@@ -8,9 -8,9 +8,9 @@@ git-rebase - Reapply commits on top of SYNOPSIS -------- [verse] -'git rebase' [-i | --interactive] [options] [--exec ] [--onto ] +'git rebase' [-i | --interactive] [] [--exec ] [--onto ] [ []] -'git rebase' [-i | --interactive] [options] [--exec ] [--onto ] +'git rebase' [-i | --interactive] [] [--exec ] [--onto ] --root [] 'git rebase' --continue | --skip | --abort | --quit | --edit-todo | --show-current-patch @@@ -203,7 -203,7 +203,7 @@@ Alternatively, you can undo the 'git re CONFIGURATION ------------- -include::rebase-config.txt[] +include::config/rebase.txt[] OPTIONS ------- @@@ -243,15 -243,11 +243,15 @@@ leave out at most one of A and B, in wh --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. @@@ -275,8 -271,6 +275,8 @@@ branch on top of the branch 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=:: @@@ -286,10 -280,8 +286,10 @@@ + 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=:: @@@ -297,8 -289,6 +297,8 @@@ 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[=]:: @@@ -334,21 -324,17 +334,21 @@@ 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:: +--no-ff:: --force-rebase:: - Force a rebase even if the current branch is up to date and - the command without `--force` would return without doing anything. +-f:: + Individually replay all rebased commits instead of fast-forwarding + over the unchanged ones. This ensures that the entire history of + the rebased branch is composed of new commits. + -You may find this (or --no-ff with an interactive rebase) helpful after -reverting a topic branch merge, as this option recreates the topic branch with -fresh commits so it can be remerged successfully without needing to "revert -the reversion" (see the -link:howto/revert-a-faulty-merge.html[revert-a-faulty-merge How-To] for details). +You may find this helpful after reverting a topic branch merge, as this option +recreates the topic branch with fresh commits so it can be remerged +successfully without needing to "revert the reversion" (see the +link:howto/revert-a-faulty-merge.html[revert-a-faulty-merge How-To] for +details). --fork-point:: --no-fork-point:: @@@ -369,22 -355,19 +369,22 @@@ default is `--no-fork-point`, otherwis --whitespace=