Whether gitDir is, as written, a linked worktree's git directory
directly under recorded: <recorded>/worktrees/<name>, <name> one
segment, with no . or .. segment anywhere. Only then does the
commondir text linkedCommonDirText lead from gitDir back to
recorded, and only when neither worktrees nor <name> is a symbolic
link, which the caller checks (review F5A).
Whether
gitDiris, as written, a linked worktree's git directory directly underrecorded:<recorded>/worktrees/<name>,<name>one segment, with no.or..segment anywhere. Only then does thecommondirtext linkedCommonDirText lead fromgitDirback torecorded, and only when neitherworktreesnor<name>is a symbolic link, which the caller checks (review F5A).