Skip to content

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

Merged
max-sixty merged 1 commit into
mainfrom
nightly/clean-30521953278-docs
Jul 30, 2026
Merged

max-sixty merged 1 commit into
mainfrom
nightly/clean-30521953278-docs

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Nightly code-quality sweep: two stale doc comments in the wt list collection code, found while surveying src/commands/list/collect/mod.rs.

  • The integration_targets comment referenced "task spawning doesn't happen until line 1090+" — a brittle line number that is both stale and directionally impossible (the comment sits at ~L1377, and the actual spawn calls work_items_for_worktree / work_items_for_branch are at ~L1731/L1744). Replaced with a phase reference that won't rot.
  • The ahead/behind comment's parenthetical "(Step 5 deletes cache.ahead_behind entirely.)" described a refactor that has already landed: there is no longer an ahead_behind field on the in-memory RepoCache — ahead/behind is served by RefSnapshot (src/git/repository/ref_snapshot.rs), keyed by SHA. Dropped the reference to the removed field and the completed future-step note; the remaining sentences stand on their own.

Comment-only changes — no behavior change, so no regression test is applicable.

@worktrunk-bot worktrunk-bot added the nightly-cleanup Issues found by nightly code quality sweep label Jul 30, 2026
@max-sixty
max-sixty merged commit 0c72c60 into main Jul 30, 2026
37 of 47 checks passed
@max-sixty
max-sixty deleted the nightly/clean-30521953278-docs branch July 30, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly-cleanup Issues found by nightly code quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants