diff options
Diffstat (limited to 'git/db/py/submodule.py')
-rw-r--r-- | git/db/py/submodule.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/git/db/py/submodule.py b/git/db/py/submodule.py index 0f2120c5..39b20961 100644 --- a/git/db/py/submodule.py +++ b/git/db/py/submodule.py @@ -8,26 +8,27 @@ from git.db.interface import SubmoduleDB __all__ = ["PureSubmoduleDB"] + class PureSubmoduleDB(SubmoduleDB): + """Pure python implementation of submodule functionality""" - + @property def submodules(self): return Submodule.list_items(self) - + def submodule(self, name): try: return self.submodules[name] except IndexError: raise ValueError("Didn't find submodule named %r" % name) # END exception handling - + def create_submodule(self, *args, **kwargs): return Submodule.add(self, *args, **kwargs) - + def iter_submodules(self, *args, **kwargs): return RootModule(self).traverse(*args, **kwargs) - + def submodule_update(self, *args, **kwargs): return RootModule(self).update(*args, **kwargs) - |