pub fn load(dir: &Path) -> Result<IgnoreList, IgnoreError>Expand description
Load and merge .gitignore then .mkitignore from dir. Returns an
empty list if neither file is present.
.gitignore patterns come first so a repo’s own .mkitignore wins under
last-match-wins.
§Errors
IgnoreError::FileTooLargeif either file exceeds 1 MiB.IgnoreError::Iofor other filesystem failures.