Type alias SetConfigParams<T>

SetConfigParams<T>: {
    dir: string;
    fs: FsClient;
    path: T;
    value: ConfigValue<T> | undefined;
    append?: boolean;
    gitdir?: string;
}

Type Parameters

  • T

Type declaration

  • dir: string

    The working tree directory path.

  • fs: FsClient

    A file system implementation.

  • path: T

    The key of the git config entry.

  • value: ConfigValue<T> | undefined

    A value to store at that path (use undefined as the value to delete a config entry).

  • Optional append?: boolean

    If true, will append rather than replace when setting (use with multi-valued config options).

  • Optional gitdir?: string

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

Generated using TypeDoc