Type alias AddParams

AddParams: {
    dir: string;
    filepath: string;
    fs: FsClient;
    cache?: Cache;
    force?: boolean;
    gitdir?: string;
}

Type declaration

  • dir: string

    A directory path.

  • filepath: string

    The path to the file to add to the index.

  • fs: FsClient

    A file system implementation.

  • Optional cache?: Cache

    A cache object.

  • Optional force?: boolean

    Allow adding otherwise ignored files.

  • Optional gitdir?: string

    The git directory path (default: {dir}/.git).

Generated using TypeDoc