diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-11-17 14:52:01 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-11-17 14:52:17 +0100 |
commit | b03933057df80ea9f860cc616eb7733f140f866e (patch) | |
tree | 9623b94063325364d63263f85ed061a56e5cb226 /lib/git/index/base.py | |
parent | e84d05f4bbf7090a9802e9cd198d1c383974cb12 (diff) | |
download | gitpython-b03933057df80ea9f860cc616eb7733f140f866e.tar.gz |
index: Sped up reading and writing of the index file by reducing the amount of attribute lookups considerably
Diffstat (limited to 'lib/git/index/base.py')
-rw-r--r-- | lib/git/index/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/index/base.py b/lib/git/index/base.py index a982d5c5..05caa06d 100644 --- a/lib/git/index/base.py +++ b/lib/git/index/base.py @@ -750,7 +750,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): may be absolute or relative paths, entries or blobs""" paths = list() for item in items: - if isinstance(item, (BaseIndexEntry,Blob)): + if isinstance(item, (BaseIndexEntry,(Blob, Submodule))): paths.append(self._to_relative_path(item.path)) elif isinstance(item, basestring): paths.append(self._to_relative_path(item)) @@ -777,7 +777,7 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): The path string may include globs, such as *.c. - - Blob object + - Blob Object Only the path portion is used in this case. - BaseIndexEntry or compatible type |