Skip to content

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

docs(list): fix two stale comments in list collection (#3665)

Worktrunk Bot0c72c60bcdaf
diff --git a/src/commands/list/collect/mod.rs b/src/commands/list/collect/mod.rs
index d5cda61cf..0a3b0bc22 100644
--- a/src/commands/list/collect/mod.rs
+++ b/src/commands/list/collect/mod.rs
@@ -1375,7 +1375,7 @@ pub fn collect(
// Create collection options from the planned task set. `integration_targets`
// is patched in after the parallel phase below extracts it — at this
// point we haven't yet resolved it, but task spawning doesn't happen
- // until line 1090+ so late population is safe.
+ // until the work-item generation phase below, so late population is safe.
let mut options = CollectOptions {
tasks,
url_template: url_template.clone(),
@@ -1685,10 +1685,9 @@ pub fn collect(
});
}
- // No need to prime the ambient `cache.ahead_behind` here: the
- // snapshot captured above carries the same batched data, and all
- // tasks consume it by SHA. (Step 5 deletes `cache.ahead_behind`
- // entirely.)
+ // No need to prime any ambient ahead/behind cache here: the snapshot
+ // captured above carries the same batched data, and all tasks consume
+ // it by SHA.
// Note: URL template expansion is deferred to task spawning (in collect_worktree_progressive
// and collect_branch_progressive). This parallelizes the work and minimizes time-to-skeleton.