code: func NewRepositoryWithErrors(base, file string, errors func(e Error) bool) GitIgnore {
  	return NewRepositoryWithCache(base, file, NewCache(), errors)
  }
docs: // NewRepositoryWithErrors returns a GitIgnore instance representing a git
  // repository with a root directory base. As with NewRepositoryWithFile, file
  // specifies the name of the files within the repository containing the
  // .gitignore patterns, and defaults to ".gitignore" if file is not specified.
  // If the ignore file name is ".gitignore", the returned GitIgnore instance
  // will also consider patterns listed in $GIT_DIR/info/exclude when performing
  // repository matching.
  //
  // If errors is given, it will be invoked for each error encountered while
  // matching a path against the repository GitIgnore (such as file permission
  // denied, or errors during .gitignore parsing). See Match below.
  //
  // Internally, NewRepositoryWithErrors uses NewRepositoryWithCache.