Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
docs: refresh comments left stale by recent list perf changes (#4293)
Worktrunk Bote7fc68460977
diff --git a/src/commands/list/ci_status/mod.rs b/src/commands/list/ci_status/mod.rsindex 22c112baa..47e231682 100644--- a/src/commands/list/ci_status/mod.rs+++ b/src/commands/list/ci_status/mod.rs@@ -690,7 +690,9 @@ impl PrStatus {/// Platform is determined from project config (`forge.platform`), falling/// back to the remote URL host. Returns `None` if the platform cannot be/// determined (user should set `forge.platform` for non-standard hostnames).- /// PR/MR detection always runs. Workflow/pipeline fallback only runs if `has_upstream`.+ /// PR/MR detection runs when the branch may head one (`may_head_pr`: skipped+ /// for a branch that was never pushed). Workflow/pipeline fallback only runs+ /// if `has_upstream`.fn detect_uncached(repo: &Repository,branch: &CiBranchName,diff --git a/src/commands/list/collect/mod.rs b/src/commands/list/collect/mod.rsindex fa8c0c6bc..72555e4e7 100644--- a/src/commands/list/collect/mod.rs+++ b/src/commands/list/collect/mod.rs@@ -49,9 +49,8 @@//!//! **Stale default branch warning:** before the skeleton, `warn_stale_default`//! compares the persisted `default_branch()` against #5's local branch-//! inventory. `wt list` always runs #5, so the check adds no fork there; the-//! picker skips #5 when branches are hidden, so it forks one `for-each-ref`-//! only when the persisted default isn't a worktree branch.+//! inventory. #5 always runs, in `wt list` and the picker alike, so the check+//! never adds a fork.//!//! ### #6 — the batched commit-details fork//!diff --git a/src/shell_exec.rs b/src/shell_exec.rsindex 807b15ea9..2f62d696d 100644--- a/src/shell_exec.rs+++ b/src/shell_exec.rs@@ -1758,8 +1758,9 @@ impl Cmd {////// On a background thread the batch takes one semaphore permit, as/// [`Self::pipe_into`] does: one permit per child could deadlock two- /// batches that each hold part of the pool. At most- /// `max_concurrent_commands()` children run at once. Stdin, timeouts,+ /// batches that each hold part of the pool. A batch runs at most+ /// `max_concurrent_commands()` children at once; other threads' commands+ /// are not counted against it. Stdin, timeouts,/// `external()` logging and shell commands are not supported.pub fn run_concurrently(cmds: &[Cmd]) -> Vec<std::io::Result<std::process::Output>> {assert!(diff --git a/tests/integration_tests/push.rs b/tests/integration_tests/push.rsindex 9aa064144..a7f625cf9 100644--- a/tests/integration_tests/push.rs+++ b/tests/integration_tests/push.rs@@ -491,7 +491,7 @@ fn test_push_dirty_target_overlap_in_untracked_dir(mut repo: TestRepo) {/// cherry-pick keeps HEAD on the branch, so `worktree_for_branch` finds the/// worktree directly; a rebase detaches HEAD, and `git worktree list/// --porcelain` reports that worktree with no branch at all — the lookup-/// succeeds only because `finalize_worktree` backfills the branch from+/// succeeds only because `finalize_worktrees` backfills the branch from/// `rebase-merge/head-name`. Were that backfill to stop covering the rebase/// case, `target_worktree_path` would go `None`, the gate would be skipped, and/// `advance_target` would return right after its compare-and-swap: the ref