docs: def items(self, path=None, version=None):
          """
          Returns a list of items.
  
          :param path: Regex filter on item path.
          :param version: Repo versions number/index.
  
          :return: List of Item class objects.
          """
          if version is None:
              version = -1
          items = {}
          for item in self.versions(version).items():
              items[item.path] = item
          parent = self.parent
  
          # get latest committed items from parents
          while parent:
              for item in parent.items(path=path):
                  if item.path not in items.keys():
                      items[item.path] = item
              parent = parent.parent
  
          # filter items matching path regex
          if path is not None:
              path += '$'
              regex = re.compile(path)
              return [item for path, item in items.items() if regex.match(path)]
          else:
              return items.values()