• Retrieves the context from the repository directory, including file names and content for specified files.

    Parameters

    • dir: string

      The directory path.

    • Optionalgitignore_path: string

      Optional path to the .gitignore file.

    • Optionaladditional_ignored_paths: string[]

      Optional array of additional relative paths to be ignored.

    Returns string

    A text string including file names and their content.