The refs git listed, listed, with each loose ref name of loose that
git did not list as an UnresolvedRef, all in name order (review
2 F2): for-each-ref can omit a dangling symbolic ref, which resolves
to no id, so its file alone shows it. A direct ref whose object is
missing still has an id, and git can list it by name and that id, so
listed may already hold it as an unresolved ref (dogfood-8a3 ruling
1). A loose name that is
not a kept ref's name, such as a file whose name holds a newline, is no
ref and is left out, never thrown (review 3 F4); the caller has already
left out every name git check-ref-format rejects.
The refs git listed,
listed, with each loose ref name ofloosethat git did not list as an UnresolvedRef, all in name order (review 2 F2):for-each-refcan omit a dangling symbolic ref, which resolves to no id, so its file alone shows it. A direct ref whose object is missing still has an id, and git can list it by name and that id, solistedmay already hold it as an unresolved ref (dogfood-8a3 ruling 1). A loose name that is not a kept ref's name, such as a file whose name holds a newline, is no ref and is left out, never thrown (review 3 F4); the caller has already left out every namegit check-ref-formatrejects.