Function checkIfIgnoredInGitRepository

  • Given a Git repository and a list of absolute paths to files contained in the repository, it filters and returns the files that are ignored by the .gitignore.

    Parameters

    • directory: string

      The absolute path to the directory containing the files.

    • files: string[]

      The list of files to check against.

    Returns Promise<string[]>

    Files ignored by the lockfile.