Skip to content

Commit 5335669

Browse files
committed
Merge branch 'en/rebase-consistency'
* en/rebase-consistency: rebase docs: fix incorrect format of the section Behavioral Differences
2 parents 7e75a63 + 6fcbad8 commit 5335669

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

Documentation/git-rebase.txt

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -550,24 +550,28 @@ Other incompatible flag pairs:
550550
BEHAVIORAL DIFFERENCES
551551
-----------------------
552552

553-
* empty commits:
553+
There are some subtle differences how the backends behave.
554554

555-
am-based rebase will drop any "empty" commits, whether the
556-
commit started empty (had no changes relative to its parent to
557-
start with) or ended empty (all changes were already applied
558-
upstream in other commits).
555+
Empty commits
556+
~~~~~~~~~~~~~
557+
558+
The am backend drops any "empty" commits, regardless of whether the
559+
commit started empty (had no changes relative to its parent to
560+
start with) or ended empty (all changes were already applied
561+
upstream in other commits).
559562

560-
merge-based rebase does the same.
563+
The merge backend does the same.
561564

562-
interactive-based rebase will by default drop commits that
563-
started empty and halt if it hits a commit that ended up empty.
564-
The `--keep-empty` option exists for interactive rebases to allow
565-
it to keep commits that started empty.
565+
The interactive backend drops commits by default that
566+
started empty and halts if it hits a commit that ended up empty.
567+
The `--keep-empty` option exists for the interactive backend to allow
568+
it to keep commits that started empty.
566569

567-
* directory rename detection:
570+
Directory rename detection
571+
~~~~~~~~~~~~~~~~~~~~~~~~~~
568572

569-
merge-based and interactive-based rebases work fine with
570-
directory rename detection. am-based rebases sometimes do not.
573+
The merge and interactive backends work fine with
574+
directory rename detection. The am backend sometimes does not.
571575

572576
include::merge-strategies.txt[]
573577

0 commit comments

Comments
 (0)