The names of the loose refs under prefix (refs/tarlatan/, or a
session's prefix, each with its trailing slash): every regular file
below <commonDir>/<prefix>, a lock file left out, named as a ref.
for-each-ref can silently omit a dangling symbolic ref, which
resolves to no id (review 2 F2); its file is still here, since git
packs no symbolic ref. A direct ref whose object is missing has an id,
and git can still list it by name and that id (dogfood-8a3 ruling 1). None when the directory is absent, as
in a repository that never kept a tree. The listing reads loose files
only on the files backend; a repository that keeps its refs in another
storage, such as a reftable, has none (review 3 F3). Every regular
file's name is returned, whatever it is; the caller leaves out a name
that is not a valid ref name (review 3 F4). Fails with LooseRefsUnreadable when a
directory or entry below it cannot be read. Reads names and kinds only,
opening no file.
The names of the loose refs under
prefix(refs/tarlatan/, or a session's prefix, each with its trailing slash): every regular file below<commonDir>/<prefix>, a lock file left out, named as a ref.for-each-refcan silently omit a dangling symbolic ref, which resolves to no id (review 2 F2); its file is still here, since git packs no symbolic ref. A direct ref whose object is missing has an id, and git can still list it by name and that id (dogfood-8a3 ruling 1). None when the directory is absent, as in a repository that never kept a tree. The listing reads loose files only on the files backend; a repository that keeps its refs in another storage, such as a reftable, has none (review 3 F3). Every regular file's name is returned, whatever it is; the caller leaves out a name that is not a valid ref name (review 3 F4). Fails withLooseRefsUnreadablewhen a directory or entry below it cannot be read. Reads names and kinds only, opening no file.