aboutsummaryrefslogtreecommitdiff
path: root/lib/git/tag.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/tag.py
parent5de63b40dbb8fef7f2f46e42732081ef6d0d8866 (diff)
downloadGitPython-b00f3689aa19938c10576580fbfc9243d9f3866c.tar.gz
GitPython-b00f3689aa19938c10576580fbfc9243d9f3866c.zip
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/tag.py')
-rw-r--r--lib/git/tag.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/git/tag.py b/lib/git/tag.py
index f54b7661..e780d2ba 100644
--- a/lib/git/tag.py
+++ b/lib/git/tag.py
@@ -18,7 +18,7 @@ class Tag(object):
is the Commit that the head points to
Returns
- ``GitPython.Tag``
+ ``git.Tag``
"""
self.name = name
self.commit = commit
@@ -35,7 +35,7 @@ class Tag(object):
is a dict of options
Returns
- ``GitPython.Tag[]``
+ ``git.Tag[]``
"""
options = {'sort': "committerdate",
'format': "%(refname)%00%(objectname)"}
@@ -56,7 +56,7 @@ class Tag(object):
is the text output from the git command
Returns
- ``GitPython.Tag[]``
+ ``git.Tag[]``
"""
tags = []
for line in text.splitlines():
@@ -80,7 +80,7 @@ class Tag(object):
id: [0-9A-Fa-f]{40}
Returns
- ``GitPython.Tag``
+ ``git.Tag``
"""
full_name, ids = line.split("\x00")
name = full_name.split("/")[-1]
@@ -88,4 +88,4 @@ class Tag(object):
return Tag(name, commit)
def __repr__(self):
- return '<GitPython.Tag "%s">' % self.name
+ return '<git.Tag "%s">' % self.name