Module repo_paths

Module repo_paths 

Source
Expand description

Resolve repository and worktree path roots. Repository and worktree path resolution.

This module contains business logic for computing repository roots and worktree layout paths. Adapter layers (CLI, web) should call these APIs and only format output.

Structs§

ResolvedEnv
Resolved repository and Ito roots for a given invocation.
ResolvedWorktreePaths
Derived worktree layout paths for the current project.

Enums§

GitRepoKind
Distinguishes bare repositories from non-bare working trees.
WorktreeFeature
Whether worktrees are enabled for the current project configuration.
WorktreeSelector
Selector for a specific worktree path.

Functions§

resolve_env
Resolve repository and Ito-related roots for the current working directory.
resolve_env_from_cwd
Resolve repository and Ito-related roots for a specific cwd.
resolve_worktree_paths
Computes worktree layout paths from the resolved environment and repository-local configuration.