summaryrefslogtreecommitdiff
path: root/lib/git/commit.py
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2008-09-16 08:08:47 +0200
committerSteve Frécinaux <code@istique.net>2008-09-17 08:08:09 +0200
commitb00f3689aa19938c10576580fbfc9243d9f3866c (patch)
treec9575089d08f9c1f701c7fdb5305b38142131975 /lib/git/commit.py
parent5de63b40dbb8fef7f2f46e42732081ef6d0d8866 (diff)
downloadgitpython-b00f3689aa19938c10576580fbfc9243d9f3866c.tar.gz
Replace GitPython with git in repr() outputs.
The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something.
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r--lib/git/commit.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/git/commit.py b/lib/git/commit.py
index e92293e4..8b7bdfa8 100644
--- a/lib/git/commit.py
+++ b/lib/git/commit.py
@@ -47,7 +47,7 @@ class Commit(LazyMixin):
is the list of the parents of the commit
Returns
- GitPython.Commit
+ git.Commit
"""
LazyMixin.__init__(self)
@@ -113,7 +113,7 @@ class Commit(LazyMixin):
``skip`` is the number of commits to skip
Returns
- GitPython.Commit[]
+ git.Commit[]
"""
options = {'pretty': 'raw'}
options.update(kwargs)
@@ -133,7 +133,7 @@ class Commit(LazyMixin):
is the text output from the git command (raw format)
Returns
- GitPython.Commit[]
+ git.Commit[]
"""
lines = [l for l in text.splitlines() if l.strip()]
@@ -180,7 +180,7 @@ class Commit(LazyMixin):
is a list of paths to limit the diff.
Returns
- GitPython.Diff[]
+ git.Diff[]
"""
paths = paths or []
@@ -229,7 +229,7 @@ class Commit(LazyMixin):
return self.id
def __repr__(self):
- return '<GitPython.Commit "%s">' % self.id
+ return '<git.Commit "%s">' % self.id
@classmethod
def actor(cls, line):