diff options
author | Steve Frécinaux <code@istique.net> | 2008-09-16 08:08:47 +0200 |
---|---|---|
committer | Steve Frécinaux <code@istique.net> | 2008-09-17 08:08:09 +0200 |
commit | b00f3689aa19938c10576580fbfc9243d9f3866c (patch) | |
tree | c9575089d08f9c1f701c7fdb5305b38142131975 /lib/git/tree.py | |
parent | 5de63b40dbb8fef7f2f46e42732081ef6d0d8866 (diff) | |
download | gitpython-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/tree.py')
-rw-r--r-- | lib/git/tree.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/git/tree.py b/lib/git/tree.py index dbd78ac4..d4587573 100644 --- a/lib/git/tree.py +++ b/lib/git/tree.py @@ -42,7 +42,7 @@ class Tree(LazyMixin): is the single line containing the items data in `git ls-tree` format Returns - ``GitPython.Blob`` or ``GitPython.Tree`` + ``git.Blob`` or ``git.Tree`` """ try: mode, typ, id, name = text.expandtabs(1).split(" ", 4) @@ -65,12 +65,12 @@ class Tree(LazyMixin): Examples:: >>> Repo('/path/to/python-git').tree/'lib' - <GitPython.Tree "6cc23ee138be09ff8c28b07162720018b244e95e"> + <git.Tree "6cc23ee138be09ff8c28b07162720018b244e95e"> >>> Repo('/path/to/python-git').tree/'README.txt' - <GitPython.Blob "8b1e02c0fb554eed2ce2ef737a68bb369d7527df"> + <git.Blob "8b1e02c0fb554eed2ce2ef737a68bb369d7527df"> Returns - ``GitPython.Blob`` or ``GitPython.Tree`` or ``None`` if not found + ``git.Blob`` or ``git.Tree`` or ``None`` if not found """ return self.get(file) @@ -79,7 +79,7 @@ class Tree(LazyMixin): os.path.basename(self.name) def __repr__(self): - return '<GitPython.Tree "%s">' % self.id + return '<git.Tree "%s">' % self.id # Implement the basics of the dict protocol: # directories/trees can be seen as object dicts. |