pub fn read_worktree_id(git_dir: &Path) -> Result<Option<String>, CaptureError>Expand description
What:
The store’s worktree identity without creating one,
or nothing when absent.
Why:
readWorktreeId:
a record of another store generation is unusable.
In TS you’d write (pseudocode):
async function readWorktreeId(gitDir: string): Promise<string | typeof WORKTREE_ID_ABSENT>;