Skip to content

Commit f102a80

Browse files
committed
Add example for listing multiple commits
1 parent 8d48e18 commit f102a80

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,19 @@ Clone a repository
5454
>>> repo.list('')
5555
```
5656

57+
List multiple commits
58+
---------------------
59+
60+
```py
61+
>>> import s3git
62+
>>> repo = s3git.init_repository(".")
63+
>>> repo.add('file1.txt')
64+
>>> repo.commit('first commit')
65+
>>> repo.add('file2.txt')
66+
>>> repo.commit('second commit')
67+
>>> repo.list_commits()
68+
```
69+
5770
Limitations and Optimizations
5871
-----------------------------
5972

0 commit comments

Comments
 (0)