aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/git_data/commits.py
diff options
context:
space:
mode:
authorNat Williams <nwilliams@leapfrogonline.com>2012-04-16 13:48:54 -0500
committerNat Williams <nwilliams@leapfrogonline.com>2012-04-16 13:48:54 -0500
commit286cf17b23890b709a7b55ecb21148af88577779 (patch)
treeea07ebb06e78d9385ed23ea178e6138b213fb6d9 /pygithub3/services/git_data/commits.py
parentadd Git Data API support (diff)
downloadpython-github3-286cf17b23890b709a7b55ecb21148af88577779.tar.xz
python-github3-286cf17b23890b709a7b55ecb21148af88577779.zip
add some docs I missed
Diffstat (limited to 'pygithub3/services/git_data/commits.py')
-rw-r--r--pygithub3/services/git_data/commits.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/pygithub3/services/git_data/commits.py b/pygithub3/services/git_data/commits.py
index cdca300..4debd95 100644
--- a/pygithub3/services/git_data/commits.py
+++ b/pygithub3/services/git_data/commits.py
@@ -8,7 +8,13 @@ class Commits(Service):
"""Consume `Commits API <http://developer.github.com/v3/git/commits/>`_"""
def get(self, sha, user=None, repo=None):
- """get a commit from the current repo"""
+ """get a commit from the current repo
+
+ :param str sha: SHA of the Commit that you want.
+ :param str user: Username
+ :param str repo: Repository
+
+ """
request = self.make_request('git_data.commits.get', sha=sha,
user=user, repo=repo)
return self._get(request)