Browse Source

Add Index.items.

Jelmer Vernooij 6 years ago
parent
commit
b031c053e4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dulwich/index.py

+ 3 - 0
dulwich/index.py

@@ -295,6 +295,9 @@ class Index(object):
     def iteritems(self):
     def iteritems(self):
         return self._byname.items()
         return self._byname.items()
 
 
+    def items(self):
+        return self._byname.items()
+
     def update(self, entries):
     def update(self, entries):
         for name, value in entries.items():
         for name, value in entries.items():
             self[name] = value
             self[name] = value