]> git.ipfire.org Git - thirdparty/git.git/commit
t7601: test interaction of merge/rebase/fast-forward flags and options
authorElijah Newren <newren@gmail.com>
Wed, 21 Jul 2021 01:42:17 +0000 (01:42 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Jul 2021 04:43:12 +0000 (21:43 -0700)
commitbe19c5ca3e28cb16d55623de2e5aa1d45bd5b5ba
tree3c10bcff037cc3057828065e8e157b845bbb8775
parent75ae10bc75336db031ee58d13c5037b929235912
t7601: test interaction of merge/rebase/fast-forward flags and options

The interaction of rebase and merge flags and options was not well
tested.  Add several tests to check for correct behavior from the
following rules:
    * --ff-only vs. --[no-]rebase
      (and the related pull.ff=only vs. pull.rebase)
    * --rebase[=!false] vs. --no-ff and --ff
      (and the related pull.rebase=!false overrides pull.ff=!only)
    * command line flags take precedence over config, except:
      * --no-rebase heeds pull.ff=!only
      * pull.rebase=!false vs --no-ff and --ff

For more details behind these rules and a larger table of individual
cases, refer to https://lore.kernel.org/git/xmqqwnpqot4m.fsf@gitster.g/
and the links found therein.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7601-merge-pull-config.sh