tarlatan
    Preparing search index...

    Variable revParseArgsConst

    revParseArgs: {
        commonDir: readonly [
            "rev-parse",
            "--path-format=absolute",
            "--git-common-dir",
        ];
        gitDir: readonly ["rev-parse", "--absolute-git-dir"];
        headRef: readonly ["rev-parse", "--symbolic-full-name", "HEAD"];
        ownerHead: readonly ["rev-parse", "HEAD"];
        toplevel: readonly ["rev-parse", "--show-toplevel"];
    } = ...

    The single-value rev-parse reads, one command each so no value is split from another at a newline. The four path and ref reads resolve symlinks (probed with git 2.50.1). headRef prints a full ref, or HEAD when detached; ownerHead is the owner's HEAD revision for the base.

    Type Declaration

    • ReadonlycommonDir: readonly ["rev-parse", "--path-format=absolute", "--git-common-dir"]
    • ReadonlygitDir: readonly ["rev-parse", "--absolute-git-dir"]
    • ReadonlyheadRef: readonly ["rev-parse", "--symbolic-full-name", "HEAD"]
    • ReadonlyownerHead: readonly ["rev-parse", "HEAD"]
    • Readonlytoplevel: readonly ["rev-parse", "--show-toplevel"]