3 test_description
='reflog walk shows repeated commits again'
6 test_expect_success
'setup commits' '
7 test_commit one file content &&
8 test_commit --append two file content
11 test_expect_success
'setup reflog with alternating commits' '
12 git checkout -b topic &&
19 test_expect_success
'reflog shows all entries' '
20 cat >expect <<-\EOF &&
21 topic@{0} reset: moving to two
22 topic@{1} reset: moving to one
23 topic@{2} reset: moving to two
24 topic@{3} reset: moving to one
25 topic@{4} branch: Created from HEAD
27 git log -g --format="%gd %gs" topic >actual &&
28 test_cmp expect actual