summaryrefslogtreecommitdiff
path: root/git/objects/__init__.py
blob: ee64287615dae0ef5a4ac4ebdf138709475e0dd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
Import all submodules main classes into the package space
"""
# flake8: noqa
from __future__ import absolute_import
import inspect
from .base import *
# Fix import dependency - add IndexObject to the util module, so that it can be
# imported by the submodule.base
from .submodule import util as smutil
smutil.IndexObject = IndexObject
smutil.Object = Object
del(smutil)
from .submodule.base import *
from .submodule.root import *

# must come after submodule was made available
from .tag import *
from .blob import *
from .commit import *
from .tree import *

__all__ = [name for name, obj in locals().items()
           if not (name.startswith('_') or inspect.ismodule(obj))]