docs: def _gitignore_entry_to_regex(entry):
      """ Take a path that you might find in a .gitignore file and turn it into a regex """
      ret = entry.strip()
      ret = ret.replace('.', '\.')
      ret = ret.replace('*', '.*')
      return ret