summaryrefslogtreecommitdiff
path: root/git/db/complex.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-30 01:23:28 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-05-30 01:23:28 +0200
commit112bb1672d6b28f203e7839e320b985486636800 (patch)
tree755fb8dcab211678697f6e03cf37122592b7c573 /git/db/complex.py
parent0996049122842a343e0ea7fbbecafddb2b4ba9d3 (diff)
downloadgitpython-112bb1672d6b28f203e7839e320b985486636800.tar.gz
Finished moving all repository methods to the respective interfaces and implementations. It seems theoretically work together now, although it clearly is much more complex than ever before.
The repo package was slimmed down to being a module once again, which is only there for compatability actually
Diffstat (limited to 'git/db/complex.py')
-rw-r--r--git/db/complex.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/git/db/complex.py b/git/db/complex.py
new file mode 100644
index 00000000..dc85a595
--- /dev/null
+++ b/git/db/complex.py
@@ -0,0 +1,12 @@
+"""Module with many useful complex databases with different useful combinations of primary implementations"""
+
+from py.complex import PureGitDB
+from cmd.complex import CmdGitDB
+from compat import RepoCompatInterface
+
+__all__ = ['CmdGitDB', 'PureGitDB', 'PureCmdGitDB']
+
+class PureCmdGitDB(PureGitDB, CmdGitDB, RepoCompatInterface):
+ """Repository which uses the pure implementation primarily, but falls back
+ to the git command implementation. Please note that the CmdGitDB does it
+ the opposite way around."""