summaryrefslogtreecommitdiff
path: root/git/objects/blob.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-06-07 21:36:42 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-06-07 21:36:42 +0200
commit58a930a632c867b65b9a3802e2f4190cf32e33ee (patch)
tree95b1311a3a4bfcdf4c2dba66f360e6985184013e /git/objects/blob.py
parenta98e0af511b728030c12bf8633b077866bb74e47 (diff)
parentf6897c78be5a5530129df50742cb6cabfb8609c9 (diff)
downloadgitpython-58a930a632c867b65b9a3802e2f4190cf32e33ee.tar.gz
Merge branch 'gitdbmerger'
Diffstat (limited to 'git/objects/blob.py')
-rw-r--r--git/objects/blob.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/git/objects/blob.py b/git/objects/blob.py
index f52d1a53..9c51f99f 100644
--- a/git/objects/blob.py
+++ b/git/objects/blob.py
@@ -4,15 +4,19 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+from git.util import RepoAliasMixin
from mimetypes import guess_type
+from git.typ import ObjectType
+
import base
__all__ = ('Blob', )
-class Blob(base.IndexObject):
+class Blob(base.IndexObject, RepoAliasMixin):
"""A Blob encapsulates a git blob object"""
DEFAULT_MIME_TYPE = "text/plain"
- type = "blob"
+ type = ObjectType.blob
+ type_id = ObjectType.blob_id
# valid blob modes
executable_mode = 0100755