Type alias InitParams

InitParams: {
    dir: string;
    fs: FsClient;
    bare?: boolean;
    defaultBranch?: string;
    gitdir?: string;
}

Type declaration

  • dir: string

    The working tree directory path.

  • fs: FsClient

    A file system client.

  • Optional bare?: boolean

    Initialize a bare repository.

  • Optional defaultBranch?: string

    The name of the default branch (default: main).

  • Optional gitdir?: string

    The git directory path (default: join(dir,'.git')).

Generated using TypeDoc