Documentation for Simbo's Packages
    Preparing search index...

    Interface GitOptions

    Options for running a Git command.

    interface GitOptions {
        cwd?: string;
        debug?: (message: string) => void;
        env?: Record<string, string | undefined>;
        maxBuffer?: number;
    }
    Index
    cwd?: string

    The working directory of the Git command.

    process.cwd()
    
    debug?: (message: string) => void

    A callback for debug messages, such as core.debug in GitHub Actions. It receives the command before it runs, and the reason when gitSucceeds() reports a failure.

    env?: Record<string, string | undefined>

    Environment variables for the Git command, merged over process.env. A variable set to undefined is removed from the environment.

    maxBuffer?: number

    The largest amount of data in bytes allowed on standard output or standard error. The command fails if it is exceeded.

    1073741824 (1 GiB)