示例#1
0
文件: tree.py 项目: Gu5HC/GitPython
 def _set_cache_(self, attr):
     if attr == "_cache":
         # Set the data when we need it
         ostream = self.odb.stream(self.binsha)
         self._cache = tree_entries_from_data(ostream.read())
     else:
         super(Tree, self)._set_cache_(attr)
示例#2
0
 def _set_cache_(self, attr):
     if attr == "_cache":
         # Set the data when we need it
         ostream = self.repo.odb.stream(self.binsha)
         self._cache = tree_entries_from_data(ostream.read())
     else:
         super(Tree, self)._set_cache_(attr)
示例#3
0
文件: tree.py 项目: Gu5HC/GitPython
 def _deserialize(self, stream):
     self._cache = tree_entries_from_data(stream.read())
     return self
示例#4
0
 def _deserialize(self, stream):
     self._cache = tree_entries_from_data(stream.read())
     return self