summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d71bde)
raw | patch | inline | side by side (parent: 2d71bde)
author | Miklos Vajna <vmiklos@frugalware.org> | |
Tue, 22 Jul 2008 17:05:59 +0000 (19:05 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Jul 2008 18:33:40 +0000 (11:33 -0700) |
The test only checked if the best result picking code works if there are
multiple strategies set in the config. Add a similar one that tests if
the same true if the -s option of git merge was used multiple times.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
multiple strategies set in the config. Add a similar one that tests if
the same true if the -s option of git merge was used multiple times.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7601-merge-pull-config.sh | patch | blob | history |
index 6b9f6388c7fc6f449621d73f1bb62b5fae29f223..55aa6b5f2716255b2b5aa74f1cac9d285de6d6a8 100755 (executable)
# recusive is choosen.
test_expect_success 'merge picks up the best result' '
+ git config --unset-all pull.twohead &&
+ git reset --hard c5 &&
+ git merge -s resolve c6
+ resolve_count=$(conflict_count) &&
+ git reset --hard c5 &&
+ git merge -s recursive c6
+ recursive_count=$(conflict_count) &&
+ git reset --hard c5 &&
+ git merge -s recursive -s resolve c6
+ auto_count=$(conflict_count) &&
+ test $auto_count = $recursive_count &&
+ test $auto_count != $resolve_count
+'
+
+test_expect_success 'merge picks up the best result (from config)' '
git config pull.twohead "recursive resolve" &&
git reset --hard c5 &&
git merge -s resolve c6