pub fn project_state_dir(state: &Path, project: &Path) -> PathBuf
A project’s directory under the state dir: per git repository when the project is in one (shared by its worktrees), else per canonical path.