code: def _items_to_rela_paths(self, items):
          
          paths = []
          for item in items:
              if isinstance(item, (BaseIndexEntry, (Blob, Submodule))):
                  paths.append(self._to_relative_path(item.path))
              elif isinstance(item, string_types):
                  paths.append(self._to_relative_path(item))
              else:
                  raise TypeError("Invalid item type: %r" % item)
          # END for each item
          return paths
docs: Returns a list of repo-relative paths from the given items which
          may be absolute or relative paths, entries or blobs