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

    Interface CreateGitFixtureOptions

    Options for creating a new repository.

    interface CreateGitFixtureOptions {
        date?: string | Date;
        debug?: (message: string) => void;
        files?: Readonly<Record<string, string | Uint8Array<ArrayBufferLike>>>;
        initialBranch?: string;
        message?: string;
        prefix?: string;
    }

    Hierarchy (View Summary)

    Index
    date?: string | Date

    The author and committer date of all commits, as Date or in a format that Git accepts, such as ISO 8601. A fixed date makes commit hashes reproducible.

    '2000-01-01T00:00:00Z'
    
    debug?: (message: string) => void

    A callback for debug messages. It receives every Git command of the fixture before it runs.

    files?: Readonly<Record<string, string | Uint8Array<ArrayBufferLike>>>

    Files of an initial commit. Without files, the repository has no commits.

    initialBranch?: string

    The name of the initial branch.

    'main'
    
    message?: string

    The message of the initial commit.

    'initial'
    
    prefix?: string

    The prefix of the temporary directory name.

    'git-fixture-'