3 test_description
='reflog walk shows repeated commits again'
6 test_expect_success
'setup commits' '
8 echo content >file && git add file && git commit -m one &&
10 echo content >>file && git add file && git commit -m two &&
14 test_expect_success
'setup reflog with alternating commits' '
15 git checkout -b topic &&
22 test_expect_success
'reflog shows all entries' '
23 cat >expect <<-\EOF &&
24 topic@{0} reset: moving to two
25 topic@{1} reset: moving to one
26 topic@{2} reset: moving to two
27 topic@{3} reset: moving to one
28 topic@{4} branch: Created from HEAD
30 git log -g --format="%gd %gs" topic >actual &&
31 test_cmp expect actual