diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-23 11:07:04 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-23 11:07:04 +0200 |
commit | 3d3a24b22d340c62fafc0e75a349c0ffe34d99d7 (patch) | |
tree | f4487593b2b67b5c50b96dcb398a5cd0b3821ab0 /lib/git/repo.py | |
parent | a10aa36bc6a82bd50df6f3df7d6b7ce04a7070f1 (diff) | |
download | gitpython-3d3a24b22d340c62fafc0e75a349c0ffe34d99d7.tar.gz |
Added repo.index property including simple test, and additional ideas in the TODO list
Diffstat (limited to 'lib/git/repo.py')
-rw-r--r-- | lib/git/repo.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 94555a31..569d6f1b 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -14,6 +14,7 @@ from errors import InvalidGitRepositoryError, NoSuchPathError from cmd import Git from actor import Actor from refs import * +from index import IndexFile from objects import * from config import GitConfigParser from remote import Remote @@ -145,6 +146,14 @@ class Repo(object): # alias heads branches = heads + + @property + def index(self): + """ + Returns + IndexFile representing this repository's index. + """ + return IndexFile(self) @property def head(self): |