]> git.ipfire.org Git - thirdparty/git.git/commit
rebase: add documentation and test for --no-rebase-merges
authorAlex Henrie <alexhenrie24@gmail.com>
Sun, 26 Mar 2023 03:06:34 +0000 (21:06 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2023 16:32:49 +0000 (09:32 -0700)
commit7e5dcec3ca4dee6d8aedd64f4dba037949f36a67
treeebf4b4941ce37d46dc167c27b9cc99a85a8b7044
parente25cabbf6b34e4a6e903d65102d87055cc994778
rebase: add documentation and test for --no-rebase-merges

As far as I can tell, --no-rebase-merges has always worked, but has
never been documented. It is especially important to document it before
a rebase.rebaseMerges option is introduced so that users know how to
override the config option on the command line. It's also important to
clarify that --rebase-merges without an argument is not the same as
--no-rebase-merges and not passing --rebase-merges is not the same as
passing --rebase-merges=no-rebase-cousins.

A test case is necessary to make sure that --no-rebase-merges keeps
working after its code is refactored in the following patches of this
series. The test case is a little contrived: It's unlikely that a user
would type both --rebase-merges and --no-rebase-merges at the same time.
However, if an alias is defined which includes --rebase-merges, the user
might decide to add --no-rebase-merges to countermand that part of the
alias but leave alone other flags set by the alias.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rebase.txt
t/t3430-rebase-merges.sh