diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-14 10:16:21 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-14 10:16:21 +0200 |
commit | 28ed48c93f4cc8b6dd23c951363e5bd4e6880992 (patch) | |
tree | be94aa64ef13779ad5b03a5f0f82e9ec9abbc0e3 /lib/git/objects/submodule.py | |
parent | 6c1faef799095f3990e9970bc2cb10aa0221cf9c (diff) | |
download | gitpython-28ed48c93f4cc8b6dd23c951363e5bd4e6880992.tar.gz |
Implemented initial version of tree serialization which appears to work according to a simple test
( presort still needs implementation )
submodule: added stub to allow the tree to return something, its not implemented though
Diffstat (limited to 'lib/git/objects/submodule.py')
-rw-r--r-- | lib/git/objects/submodule.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/git/objects/submodule.py b/lib/git/objects/submodule.py new file mode 100644 index 00000000..4742d448 --- /dev/null +++ b/lib/git/objects/submodule.py @@ -0,0 +1,15 @@ +import base + + +class Submodule(base.IndexObject): + """Implements access to a git submodule. They are special in that their sha + represents a commit in the submodule's repository which is to be checked out + at the path of this instance. + The submodule type does not have a string type associated with it, as it exists + solely as a marker in the tree and index""" + + # this is a bogus type for base class compatability + type = 'submodule' + + # TODO: Add functions to retrieve a repo for the submodule, to allow + # its initiailization and handling |