Skip to content

Commit e249941

Browse files
committed
Moved plenty of code around to separate pure python implementation from future ones. This will change plenty of imports, which still needs to be fixed. Fortunately, this is a good foundation for getting all the tests fixed one again. Another step is to make the tests more flexible by allowing to run them with different object database easily.
1 parent 8ae52a5 commit e249941

14 files changed

+560
-326
lines changed

‎doc/source/changes.rst

+29-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,35 @@ Changelog
55
****
66
NEXT
77
****
8-
* Added interface to allow transporting git data: **TransportDB**
9-
* Added interface to allow reference resolution: **RefParseMixin**
10-
* Added interface to handle git related paths: **RepositoryPathsMixin**
11-
* Added interface to read and write git-like configuration: **ConfigurationMixin**
12-
* Added **RevParseMixin** providing reference resolution.
13-
* Added implementation of git datbase with support for transportation and reference resolution: **RefGitDB**
14-
* Renamed type *GitDB* to **GitODB** to differentiate its object-only property to the **RefGitDB**
8+
* == **General Design** ==
9+
10+
* Database Interfaces have no implementation anymore (or only a minimal most general one where adequate). All previous implementation moved to the *py* subdirectory, which is designated to the pure python implementation. It
11+
12+
* == **Renamed Types** ==
13+
14+
* Renamed type *GitDB* to **GitODB**. *GitDB* now is a new type with more functionality
15+
* Renamed type **FileDB** to **RootPathDB**
16+
* The previous implementations for all types found in db/base.py are now renamed to **Pure**<PreviousName> and moved to the db/py/base.py module.
17+
18+
* == **Renamed Modules** ==
19+
20+
* in *gitdb/db*
21+
22+
* moved all modules *except for* base.py into **py/** subdirectory
23+
* renamed **base.py** into **interface.py**
24+
25+
* == **New Modules** ==
26+
27+
* gitdb/db/py/base.py - pure python base implenentations for many simple interfaces which are subsequently used by complex pure implementations.
28+
29+
30+
* == **New Interfaces** ==
31+
32+
* Added interface to allow transporting git data: **TransportDB**
33+
* Added interface to handle git related paths: **RepositoryPathsMixin**
34+
* Added interface to read and write git-like configuration: **ConfigurationMixin**
35+
* Added **ReferencesMixin** providing reference resolution.
36+
* Added implementation of git datbase with support for transportation and reference resolution: **GitDB**
1537

1638
*****
1739
0.5.2

‎gitdb/db/__init__.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,4 @@
33
# This module is part of GitDB and is released under
44
# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
55

6-
from base import *
7-
from loose import *
8-
from mem import *
9-
from pack import *
10-
from git import *
11-
from ref import *
12-
6+
from interface import *

0 commit comments

Comments
 (0)