code: def add_index(self, mode, blob_id, path):
          
          self.command_exec(['update-index', '--add', '--cacheinfo', mode, blob_id, path])
docs: Add new entry to the current index
          :param tree: 
          :return: