diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-15 19:03:53 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-15 19:03:53 +0100 |
commit | 624556eae1c292a1dc283d9dca1557e28abe8ee3 (patch) | |
tree | a90ef1572044f113d3dae587f67f6ca51593ba07 /lib/git/objects/base.py | |
parent | f97653aa06cf84bcf160be3786b6fce49ef52961 (diff) | |
download | gitpython-624556eae1c292a1dc283d9dca1557e28abe8ee3.tar.gz |
Optimized test-decorators, by completely removing with_bare_rw_repo, which was mainly copy-paste from with_rw_repo, what a shame
Diffstat (limited to 'lib/git/objects/base.py')
-rw-r--r-- | lib/git/objects/base.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py index 82c2589c..b8cec47f 100644 --- a/lib/git/objects/base.py +++ b/lib/git/objects/base.py @@ -114,7 +114,10 @@ class Object(LazyMixin): class IndexObject(Object): """Base for all objects that can be part of the index file , namely Tree, Blob and SubModule objects""" - __slots__ = ("path", "mode") + __slots__ = ("path", "mode") + + # for compatability with iterable lists + _id_attribute_ = 'path' def __init__(self, repo, binsha, mode=None, path=None): """Initialize a newly instanced IndexObject |