ConstReadonlycheckRefName: (name: string) => readonly string[]Whether name is a valid ref name (git-check-ref-format(1)): exit 0
when it is, 1 when it is not. A loose file whose name git rejects is
no ref, and git's own listing ignores it too (review 3 F4).
ReadonlycommitTree: (Makes a commit of tree whose parent is base, with message, under
the fixed identity, and prints its id. Writes one commit object and
moves no ref.
ReadonlycommonDir: readonly ["rev-parse", "--path-format=absolute", "--git-common-dir"]The common git directory git reports for the worktree, as an absolute
path on one line (git-rev-parse(1), --git-common-dir). The keeper
deletes no ref unless it is the recorded common directory as written,
with no . or .. segment (review F4A, F5A).
ReadonlyconfiguredRefStorage: (commonDir: string) => readonly string[]extensions.refStorage from the repository's own config file in
commonDir, never merged config (git-config(1), --file): exit 0 with
the value when it is set, 1 when it is not, which means the files
backend. Read only when git does not answer
keptRefArgs.refFormat, as git 2.43 does not, echoing the
argument instead (review F3C). The repository's own config is where
git picks the backend; a worktree's config.worktree cannot change it.
ReadonlycreateRef: (ref: string, commit: string & Brand<"Revision">) => readonly string[]Points the new ref ref at commit; fails when ref already exists.
--no-deref keeps the write on ref itself (git-update-ref(1)):
without it, git would follow a symbolic ref and create or move the ref
it names, outside refs/tarlatan/ (dogfood-8 review F2); with it, a
symbolic ref to an existing ref fails the zero check. The fixed
identity is there for a reflog entry, which a target's
core.logAllRefUpdates=always would ask for.
ReadonlydeleteItself: (ref: string) => readonly string[]Deletes ref itself with no old value: an unresolved ref git listed
no id for, such as a dangling symbolic ref (review 2 F2), or a
symbolic ref, which may be dangling by its turn, when a ref it names was deleted first, and git
refuses any old value for a dangling symbolic ref (review 3 F3
re-review). --no-deref removes the symbolic ref and never creates or
touches the ref it names. Only one writer holds tarlatan's lock (owner
ruling R3), so no old value is needed to keep another's write.
ReadonlydeleteRef: (ref: string, oid: string & Brand<"Revision">) => readonly string[]Deletes ref itself when it still points at oid, under the fixed
identity as keptRefArgs.createRef. --no-deref deletes a
symbolic ref and not the ref it names: for-each-ref lists a symbolic
ref with the object it resolves to, which would otherwise pass the
old-value check and delete, say, the supervisor branch (review F2).
A ref git listed whose object is missing is deleted this way too, with
the id it was listed with: git compares the id the ref holds and never
reads the object (dogfood-8a4 F1).
ReadonlylistRefs: (prefix: string) => readonly string[]Lists every ref under prefix: its name and its object id,
NUL-separated, one per line; the object may be missing (dogfood-8a3
ruling 1), which keptRefArgs.objectExists tells.
ReadonlyobjectExists: (object: string & Brand<"Revision">) => readonly string[]Whether the object object, a full object id, exists in the
repository (git-cat-file(1), -e): exit 0 when it does, 1 when it is
missing. Asked of each ref the listing names, so a ref whose object is
missing is unresolved and the listing goes on (dogfood-8a3 ruling 1).
ReadonlyrecordedTree: (commit: string & Brand<"Revision">) => readonly string[]The tree id the commit commit, a full object id of a commit that
exists, records, alone on one line (git-log(1), --format=%T). Git
reads it from the commit without the tree object, so a commit whose
tree object is missing still gives its tree's id (dogfood-8a4 F2), where
rev-parse <commit>^{tree} needs the tree object. Only the id is
printed, never the commit's header or message, so a commit stored in a
legacy encoding such as ISO-8859-1 gives plain ASCII (dogfood-8a4
re-review 2 F1). --no-walk reads that one commit and never its
parents, so a readable commit whose parent object is missing still
gives its tree's id (dogfood-8a5 F1). --encoding=UTF-8 overrides the
repository's i18n.logOutputEncoding, under which a setting such as
UTF-16LE would print the hex digits with NUL bytes (dogfood-8a5 F2).
--no-show-signature keeps a signature check out of the output, and
-- keeps the id from being read as a path.
ReadonlyrefExists: (ref: string) => readonly string[]Whether the exact ref ref resolves to an object (git-show-ref(1),
--verify --quiet): exit 0 when it does, 1 when it does not. --verify
requires the exact ref path and never expands it the way rev-parse
does, which can fall through from a dangling symbolic ref to a branch
whose name is the whole ref path (review F4B). A symbolic ref stored as
a symbolic link whose target is relative to the git directory is
skipped by for-each-ref and still resolves here (review F3B).
ReadonlyrefFormat: readonly ["rev-parse", "--show-ref-format"]The ref storage format git actually uses for the repository, such as
files or reftable, on one line (git-rev-parse(1),
--show-ref-format; review 3 F3). Git itself answers, so a value
that merged config would show differently, such as
extensions.refStorage set in a worktree's config.worktree, which
git ignores when it picks the backend, cannot mislead the listing.
ReadonlyrefObject: (ref: string) => readonly string[]The object the exact ref ref resolves to, its full id on one line
(git-show-ref(1), --verify --hash), read after
keptRefArgs.refExists says it resolves (review F4B).
ReadonlyrefStored: (ref: string) => readonly string[]Whether the exact ref ref exists as stored, whatever it points at
(git-show-ref(1), --exists, git 2.43 and later): exit 0 when it
does, 2 when it is missing, 1 on any other error. Asked only when
keptRefArgs.refExists fails otherwise than "does not
resolve", as it does with exit 128 for a ref whose object is missing:
a ref that exists then is unresolved, and the listing goes on (review
F5B).
ReadonlyresolveCommit: (object: string & Brand<"Revision">) => readonly string[]The commit object, a full object id, peels to (git-rev-parse(1),
--verify --quiet): exit 0 printing it, 1 when it peels to no commit,
through any annotated tags (review F5C). A full id names that object,
never a ref (review F3B, F4B).
ReadonlysymbolicTarget: (ref: string) => readonly string[]Whether ref is a symbolic ref, dangling or not: exit 0 printing its
target when it is, 1 when it is not (absent, or a plain ref). The
keeper refuses a symbolic ref before keptRefArgs.createRef:
with --no-deref, git checks the zero old value against what the
symbolic ref resolves to, and one that resolves to nothing passes and
is overwritten, though the named ref was not absent (review F2).
The git commands that keep a tree on a ref, list kept refs and delete them.