3 test_description='merging with large rename matrix'
8 while test $i -le $1; do
14 test_expect_success 'setup (initial)' '
17 git commit -m initial &&
23 for i in `count 20`; do
30 test_expect_success "rename ($1, $2)" '
33 git checkout -f master &&
34 git branch -D test$n || true &&
35 git reset --hard initial &&
36 for i in $(count $n); do
37 make_text $i initial initial >$i
40 git commit -m add=$n &&
41 for i in $(count $n); do
42 make_text $i changed initial >$i
44 git commit -a -m change=$n &&
45 git checkout -b test$n HEAD^ &&
46 for i in $(count $n); do
48 make_text $i initial changed >$i.moved
51 git commit -m change+rename=$n &&
53 ok) git merge master ;;
54 *) test_must_fail git merge master ;;
61 test_expect_success 'set diff.renamelimit to 4' '
62 git config diff.renamelimit 4
67 test_expect_success 'set merge.renamelimit to 5' '
68 git config merge.renamelimit 5