summaryrefslogtreecommitdiff
path: root/lib/git
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-20 12:24:47 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-20 12:24:47 +0200
commit4a534eba97db3c2cfb2926368756fd633d25c056 (patch)
treeb221f0ba3114cbfd8abe8432a91770578483565d /lib/git
parent35a09c0534e89b2d43ec4101a5fb54576b577905 (diff)
downloadgitpython-4a534eba97db3c2cfb2926368756fd633d25c056.tar.gz
Added frame for index implementation and testing
Diffstat (limited to 'lib/git')
-rw-r--r--lib/git/__init__.py2
-rw-r--r--lib/git/index.py17
2 files changed, 18 insertions, 1 deletions
diff --git a/lib/git/__init__.py b/lib/git/__init__.py
index 75ce887b..e3043dc9 100644
--- a/lib/git/__init__.py
+++ b/lib/git/__init__.py
@@ -19,7 +19,7 @@ from git.cmd import Git
from git.repo import Repo
from git.stats import Stats
from git.remote import Remote
-
+from git.index import *
__all__ = [ name for name, obj in locals().items()
if not (name.startswith('_') or inspect.ismodule(obj)) ]
diff --git a/lib/git/index.py b/lib/git/index.py
new file mode 100644
index 00000000..1c531712
--- /dev/null
+++ b/lib/git/index.py
@@ -0,0 +1,17 @@
+# index.py
+# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors
+#
+# This module is part of GitPython and is released under
+# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+"""
+Module containing Index implementation, allowing to perform all kinds of index
+manipulations such as querying and merging.
+"""
+
+class Index(object):
+ """
+ Implements an Index that can be manipulated using a native implementation in
+ order to safe git command function calls wherever possible.
+
+ It provides custom merging facilities and to create custom commits.
+ """