Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

docs(worktree): correct "^" resolution terminology (#3574)

Worktrunk Botd13d4b10b745
diff --git a/src/git/repository/worktrees.rs b/src/git/repository/worktrees.rs
index 97027ccc2..664823db1 100644
--- a/src/git/repository/worktrees.rs
+++ b/src/git/repository/worktrees.rs
@@ -180,7 +180,7 @@ impl Repository {
Ok(())
}
- /// Resolve a worktree name, expanding "@" to current, "-" to previous, and "^" to main.
+ /// Resolve a worktree name, expanding "@" to current, "-" to previous, and "^" to the default branch.
///
/// # Arguments
/// * `name` - The worktree name to resolve:
@@ -237,7 +237,7 @@ impl Repository {
/// * `name` - The worktree name to resolve:
/// - "@" for current worktree (works even in detached HEAD)
/// - "-" for previous branch's worktree
- /// - "^" for main worktree
+ /// - "^" for the default branch's worktree
/// - any other string is treated as a branch name
///
/// # Returns