fynjs API
    Preparing search index...

    Function makeGitignoreMatcher

    • Build a gitignore matcher for a repo root.

      Never throws for a missing or unreadable ignore file - a repo with no rules simply matches nothing.

      Parameters

      • cwd: string

        repo root to read ignore rules from

      Returns GitignoreMatcher

      a matcher; GitignoreMatcher.hasRules is false when nothing was loaded