]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3422-rebase-incompatible-options.sh
rebase: add a config option for --rebase-merges
authorAlex Henrie <alexhenrie24@gmail.com>
Sun, 26 Mar 2023 03:06:36 +0000 (21:06 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Mar 2023 16:32:49 +0000 (09:32 -0700)
commit6605fb70cb79776af9e20c0300dc66563a300b42
tree719fede46c38ad9689ba830aaa79a356cfd947eb
parent33561f517036dd0bcddf319a56fd3488759396e5
rebase: add a config option for --rebase-merges

The purpose of the new option is to accommodate users who would like
--rebase-merges to be on by default and to facilitate turning on
--rebase-merges by default without configuration in a future version of
Git.

Name the new option rebase.rebaseMerges, even though it is a little
redundant, for consistency with the name of the command line option and
to be clear when scrolling through values in the [rebase] section of
.gitconfig.

Support setting rebase.rebaseMerges to the nonspecific value "true" for
users who don't need to or don't want to learn about the difference
between rebase-cousins and no-rebase-cousins.

Make --rebase-merges without an argument on the command line override
any value of rebase.rebaseMerges in the configuration, for consistency
with other command line flags with optional arguments that have an
associated config option.

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