Whether every one of paths, each absolute, is a directory itself, by
lstat, which never follows a symbolic link (review F5A): a linked
worktree's commondir text ../.. leads back to the recorded common
directory only when its worktrees directory and the worktree's git
directory are no links, since git resolves each link before the next
... A missing path is no directory. Fails with LooseRefsUnreadable
when a path exists and cannot be read, so the caller can refuse rather
than guess.
Whether every one of
paths, each absolute, is a directory itself, bylstat, which never follows a symbolic link (review F5A): a linked worktree'scommondirtext../..leads back to the recorded common directory only when itsworktreesdirectory and the worktree's git directory are no links, since git resolves each link before the next... A missing path is no directory. Fails withLooseRefsUnreadablewhen a path exists and cannot be read, so the caller can refuse rather than guess.