@karmaniverous/jeeves-watcher
    Preparing search index...

    Class GitignoreFilter

    Processor-level gitignore filter. Checks file paths against the nearest .gitignore chain in git repositories.

    Index

    Constructors

    Methods

    Constructors

    • Create a GitignoreFilter by scanning watched paths for .gitignore files.

      Parameters

      • watchPaths: string[]

        Absolute paths being watched (directories or globs resolved to roots).

      Returns GitignoreFilter

    Methods

    • Invalidate and re-parse a specific .gitignore file. Call when a .gitignore file is added, changed, or removed.

      Parameters

      • gitignorePath: string

        Absolute path to the .gitignore file that changed.

      Returns void

    • Check whether a file path is ignored by any applicable .gitignore.

      Parameters

      • filePath: string

        Absolute file path to check.

      Returns boolean

      true if the file should be ignored.