diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 14:33:51 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-14 14:33:51 +0200 |
commit | ead94f267065bb55303f79a0a6df477810b3c68d (patch) | |
tree | e93151510cf320a1986c6405409f83d03493fe55 /lib/git/repo.py | |
parent | ac1cec7066eaa12a8d1a61562bfc6ee77ff5f54d (diff) | |
download | gitpython-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.py | 20 |
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) |