summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r--lib/git/repo.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py
index 0dd776f6..d5dab242 100644
--- a/lib/git/repo.py
+++ b/lib/git/repo.py
@@ -347,26 +347,6 @@ class Repo(object):
return root
- def log(self, commit='master', path=None, **kwargs):
- """
- The Commit for a treeish, and all commits leading to it.
-
- ``kwargs``
- keyword arguments specifying flags to be used in git-log command,
- i.e.: max_count=1 to limit the amount of commits returned
-
- Returns
- ``git.Commit[]``
- """
- options = {'pretty': 'raw'}
- options.update(kwargs)
- arg = [commit, '--']
- if path:
- arg.append(path)
- commits = self.git.log(*arg, **options)
- print commits.splitlines(False)
- return list(Commit._iter_from_stream(self, iter(commits.splitlines())))
-
def diff(self, a, b, *paths):
"""
The diff from commit ``a`` to commit ``b``, optionally restricted to the given file(s)