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"];
} = ...
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"]
The single-value
rev-parsereads, 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).headRefprints a full ref, orHEADwhen detached;ownerHeadis the owner's HEAD revision for the base.