Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Simplify detect_default_branch documentation
Maximilian Roos856fbdfa9ab5
diff --git a/src/git/repository/mod.rs b/src/git/repository/mod.rsindex a1a8d74db..7dd70efd2 100644--- a/src/git/repository/mod.rs+++ b/src/git/repository/mod.rs@@ -317,8 +317,7 @@ impl Repository {/// Detect the default branch without using worktrunk's cache.///- /// Used by `default_branch()` to populate the cache, and after- /// `wt config state default-branch clear` to force re-detection.+ /// Called by `default_branch()` to populate the cache.pub fn detect_default_branch(&self) -> anyhow::Result<String> {// Try to get from the primary remoteif let Ok(remote) = self.primary_remote() {