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 8c9da73 commit d7b401eCopy full SHA for d7b401e
git/repo/base.py
@@ -471,8 +471,10 @@ def config_writer(self, config_level="repository"):
471
472
def commit(self, rev=None):
473
"""The Commit object for the specified revision
474
+
475
:param rev: revision specifier, see git-rev-parse for viable options.
- :return: ``git.Commit``"""
476
+ :return: ``git.Commit``
477
+ """
478
if rev is None:
479
return self.head.commit
480
return self.rev_parse(str(rev) + "^0")
0 commit comments