Skip to main content

tracked_worktree_status

Function tracked_worktree_status 

Source
pub async fn tracked_worktree_status(
    repo_path: PathBuf,
) -> Result<String, GitError>
Expand description

Re-exported commit/sync/diff APIs. Returns a stable porcelain status snapshot for tracked worktree files only.

This omits untracked files so session isolation checks can ignore unrelated editor or build artifacts while still catching modifications, deletions, and staged changes to tracked files in the main checkout.

§Arguments

  • repo_path - Path to the git repository or worktree

§Returns

Raw git status --porcelain=v1 --untracked-files=no stdout.

§Errors

Returns a GitError if the status command cannot be executed.