summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-14 14:33:51 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-14 14:33:51 +0200
commitead94f267065bb55303f79a0a6df477810b3c68d (patch)
treee93151510cf320a1986c6405409f83d03493fe55 /lib/git/repo.py
parentac1cec7066eaa12a8d1a61562bfc6ee77ff5f54d (diff)
downloadgitpython-ead94f267065bb55303f79a0a6df477810b3c68d.tar.gz
cmd: added option to return the process directly, allowing to read the output directly from the output stream
commit: now reads commit information directly from the output stream of the process by implementing its iterator method repo: removed log method as it was redundant ( equal to the commits method )
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)