File tree Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Expand file tree Collapse file tree 4 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 5757* Should return submodules during iteration ( identifies as commit )
5858* Work through test and check for test-case cleanup and completeness ( what about
5959 testing whether it raises on invalid input ? ). See 6dc7799d44e1e5b9b77fd19b47309df69ec01a99
60+ - Also assure that the test-case setup is a bit more consistent ( Derive from TestCase, possibly
61+ make repo a class member instead of an instance member
6062* Derive from Iterable, simple pipe it through to Commit objects and iterate using
6163 commit.tree.
6264
Original file line number Diff line number Diff line change 1919from git .repo import Repo
2020from git .stats import Stats
2121from git .remote import Remote
22-
22+ from git . index import *
2323
2424__all__ = [ name for name , obj in locals ().items ()
2525 if not (name .startswith ('_' ) or inspect .ismodule (obj )) ]
Original file line number Diff line number Diff line change 1+ # index.py
2+ # Copyright (C) 2008, 2009 Michael Trier ([email protected] ) and contributors 3+ #
4+ # This module is part of GitPython and is released under
5+ # the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+ """
7+ Module containing Index implementation, allowing to perform all kinds of index
8+ manipulations such as querying and merging.
9+ """
10+
11+ class Index (object ):
12+ """
13+ Implements an Index that can be manipulated using a native implementation in
14+ order to safe git command function calls wherever possible.
15+
16+ It provides custom merging facilities and to create custom commits.
17+ """
Original file line number Diff line number Diff line change 1+ # test_index.py
2+ # Copyright (C) 2008, 2009 Michael Trier ([email protected] ) and contributors 3+ #
4+ # This module is part of GitPython and is released under
5+ # the BSD License: http://www.opensource.org/licenses/bsd-license.php
6+
7+ from test .testlib import *
8+ from git import *
9+
10+ class TestTree (TestCase ):
11+
12+ @classmethod
13+ def setUpAll (cls ):
14+ cls .repo = Repo (GIT_REPO )
15+
16+ def test_base (self ):
17+ self .fail ("TODO" )
You can’t perform that action at this time.
0 commit comments