3 test_description
='git merge
5 Testing octopus merge with more than 25 refs.'
9 test_expect_success
'setup' '
17 git reset --hard c0 &&
22 i=`expr $i + 1` || return 1
26 test_expect_success
'merge c1 with c2, c3, c4, ... c29' '
27 git reset --hard c1 &&
36 test "$(git rev-parse c1)" != "$(git rev-parse HEAD)" &&
40 test "$(git rev-parse c$i)" = "$(git rev-parse HEAD^$i)" &&
41 i=`expr $i + 1` || return 1
43 git diff --exit-code &&
48 i=`expr $i + 1` || return 1
53 Trying simple merge with c2
54 Trying simple merge with c3
55 Trying simple merge with c4
56 Merge made by octopus.
60 3 files changed
, 3 insertions
(+), 0 deletions
(-)
61 create mode
100644 c2.c
62 create mode
100644 c3.c
63 create mode
100644 c4.c
66 test_expect_success
'merge output uses pretty names' '
67 git reset --hard c1 &&
68 git merge c2 c3 c4 >actual.raw &&
69 tr -d "\r" < actual.raw > actual &&
70 test_cmp actual expected
74 Already up-to-date with c4
75 Trying simple merge with c5
76 Merge made by octopus.
78 1 files changed
, 1 insertions
(+), 0 deletions
(-)
79 create mode
100644 c5.c
82 test_expect_success
'merge up-to-date output uses pretty names' '
83 git merge c4 c5 >actual.raw &&
84 tr -d "\r" < actual.raw > actual &&
85 test_cmp actual expected
89 Fast-forwarding to
: c1
90 Trying simple merge with c2
91 Merge made by octopus.
94 2 files changed
, 2 insertions
(+), 0 deletions
(-)
95 create mode
100644 c1.c
96 create mode
100644 c2.c
99 test_expect_success
'merge fast-forward output uses pretty names' '
100 git reset --hard c0 &&
101 git merge c1 c2 >actual.raw &&
102 tr -d "\r" < actual.raw > actual &&
103 test_cmp actual expected