3 test_description
='reflog walk shows repeated commits again'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'setup commits' '
9 test_commit one file content &&
10 test_commit --append two file content
13 test_expect_success
'setup reflog with alternating commits' '
14 git checkout -b topic &&
21 test_expect_success
'reflog shows all entries' '
22 cat >expect <<-\EOF &&
23 topic@{0} reset: moving to two
24 topic@{1} reset: moving to one
25 topic@{2} reset: moving to two
26 topic@{3} reset: moving to one
27 topic@{4} branch: Created from HEAD
29 git log -g --format="%gd %gs" topic >actual &&
30 test_cmp expect actual