pull: allow pull to preserve merges when rebasing
commit66713ef3b00933755cdeff1ae823dda7b5843640
authorStephen Haberman <stephen@exigencecorp.com>
Tue, 13 Aug 2013 03:43:42 +0000 (12 22:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 19:45:48 +0000 (4 12:45 -0700)
treea6cd1fc40f748c761efb831cf555bab21628c47a
parent96cb27a9d2db3c01b8e296a0fbc1da1da09d1412
pull: allow pull to preserve merges when rebasing

If a user is working on master, and has merged in their feature branch, but now
has to "git pull" because master moved, with pull.rebase their feature branch
will be flattened into master.

This is because "git pull" currently does not know about rebase's preserve
merges flag, which would avoid this behavior, as it would instead replay just
the merge commit of the feature branch onto the new master, and not replay each
individual commit in the feature branch.

Add a --rebase=preserve option, which will pass along --preserve-merges to
rebase.

Also add 'preserve' to the allowed values for the pull.rebase config setting.

Signed-off-by: Stephen Haberman <stephen@exigencecorp.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-pull.txt
git-pull.sh
t/t5520-pull.sh