Repository navigation
chore: correct stale comments and a FAQ claim about wt remove - #4831
Merged
Merged
Conversation
- FAQ: wt remove deletes the branch only when it's merged, as the same page says further down. - tests/common/list_snapshots.rs: drop an allow(dead_code) whose justification (platform-gated callers) is false; all three helpers are used unconditionally. - switch_picker_dry_run.rs: name the test "same as above" refers to. - gitea.rs: the TEA_NO_PROMPT comment claimed not to invent a variable while inventing one. - state.rs: the unknown-key error listed logs, which handle_state_get has no arm for.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Five small corrections from the nightly survey, none of which change behavior:
wt remove <branch>"deletes the branch". By default it deletes only a merged branch, as the same page's "What can Worktrunk delete?" section says. Now reads "deletes the branch if it's merged". The skill mirrors are regenerated.tests/common/list_snapshots.rs: drops an#![allow(dead_code)]whose comment said the helpers are only used on some platforms. All three are called unconditionally fromlist.rsandlist_layout.rs.cargo clippy --all-targetsstays clean without it.tests/integration_tests/switch_picker_dry_run.rs: "Same as above" sat under an unrelated test. It now namestest_picker_dry_run_emits_configured_rows_and_cache_json.src/git/remote_ref/gitea.rs: theTEA_NO_PROMPTcomment said the code avoided "inventing a fake var" while doing exactly that. It now says the name is a placeholder that tea ignores.src/commands/config/state.rs:handle_state_get's unknown-key error listedlogsas valid, but there is nologsarm. Every caller inmain.rspasses a literal key, so users never see this message.No regression test: the changes touch only docs, comments, and an attribute.
test_docs_are_in_syncpasses.