summaryrefslogtreecommitdiff
path: root/lib/git/head.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/head.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/head.py')
-rw-r--r--lib/git/head.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/git/head.py b/lib/git/head.py
index 96d35010..4386aa98 100644
--- a/lib/git/head.py
+++ b/lib/git/head.py
@@ -20,7 +20,7 @@ class Head(object):
'master'
>>> head.commit
- <GitPython.Commit "1c09f116cbc2cb4100fb6935bb162daa4723f455">
+ <git.Commit "1c09f116cbc2cb4100fb6935bb162daa4723f455">
>>> head.commit.id
'1c09f116cbc2cb4100fb6935bb162daa4723f455'
@@ -37,7 +37,7 @@ class Head(object):
is the Commit that the head points to
Returns
- GitPython.Head
+ git.Head
"""
self.name = name
self.commit = commit
@@ -54,7 +54,7 @@ class Head(object):
is a dict of options
Returns
- GitPython.Head[]
+ git.Head[]
"""
options = {'sort': "committerdate",
@@ -75,7 +75,7 @@ class Head(object):
is the text output from the git command
Returns
- GitPython.Head[]
+ git.Head[]
"""
heads = []
@@ -101,7 +101,7 @@ class Head(object):
id: [0-9A-Fa-f]{40}
Returns
- GitPython.Head
+ git.Head
"""
full_name, ids = line.split("\x00")
name = full_name.split("/")[-1]
@@ -109,4 +109,4 @@ class Head(object):
return Head(name, c)
def __repr__(self):
- return '<GitPython.Head "%s">' % self.name
+ return '<git.Head "%s">' % self.name