Created
July 12, 2018 14:26
-
-
Save adw0rd/776860ab63a7ca4b9b1d1e87c20dafda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from git import Repo, Commit | |
repo = Repo.clone_from('[email protected]:smappi/smappi.git', '/tmp/xxx') | |
# repo = Repo('/tmp/xxx') | |
commits = list(repo.iter_commits('master', max_count=5)) | |
[{'name': str(c.author), 'email': c.author.email, 'msg': c.message} for c in commits] | |
>>> | |
[{'name': 'Mikhail Andreev (adw0rd)', | |
'email': '[email protected]', | |
'msg': '0.5.2\n'}, | |
{'name': 'Mikhail Andreev (adw0rd)', | |
'email': '[email protected]', | |
'msg': 'Support undefined in doctetst (cause undefined is object)\n'}, | |
{'name': 'Mikhail Andreev (adw0rd)', | |
'email': '[email protected]', | |
'msg': '0.5.1\n'}, | |
{'name': 'Mikhail Andreev (adw0rd)', | |
'email': '[email protected]', | |
'msg': 'Bugfixed adaptResultByMask when object is undefined\n'}, | |
{'name': 'Mikhail Andreev (adw0rd)', | |
'email': '[email protected]', | |
'msg': '0.5.0\n'}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks lot :)