We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19b15ed commit 3cc0662Copy full SHA for 3cc0662
test/test_revwalk.py
@@ -102,6 +102,10 @@ def test_sort(self):
102
walker.sort(GIT_SORT_TIME | GIT_SORT_REVERSE)
103
self.assertEqual([x.hex for x in walker], list(reversed(log)))
104
105
+ def test_simplify_first_parent(self):
106
+ walker = self.repo.walk(log[0], GIT_SORT_TIME)
107
+ walker.simplify_first_parent()
108
+ self.assertEqual(len(list(walker)), 3)
109
110
if __name__ == '__main__':
111
unittest.main()
0 commit comments