Skip to content

feat: complete wt config show with all fields and source annotations#170

Merged
raphi011 merged 1 commit into
mainfrom
show-config
Apr 5, 2026
Merged

feat: complete wt config show with all fields and source annotations#170
raphi011 merged 1 commit into
mainfrom
show-config

Conversation

@raphi011

@raphi011 raphi011 commented Apr 5, 2026

Copy link
Copy Markdown
Owner

Implements the full wt config show command per the design spec. Previously the command only covered ~8 of ~25 config fields inconsistently. Now it shows every field grouped by section with (global)/(local) source annotations, and falls back to global-only output when run outside a registered repo.

Also fixes GetRemoteURLs to read stored remote URLs via git config --get-regexp instead of git remote -v, preventing insteadOf URL rewrites from leaking into the output.

Breaking Changes

  • None

Test Coverage

  • Unit tests added: 0 (existing TestGetRemoteURLs tests now pass; config show is E2E-testable but no new unit tests added)
  • Integration tests added: 0

Implements the full config show command displaying every configuration
field grouped by section with (global)/(local) annotations. Fixes
GetRemoteURLs to use stored URLs instead of insteadOf-rewritten ones.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov

codecov Bot commented Apr 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 61.37566% with 73 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/wt/config_cmd.go 59.55% 51 Missing and 21 partials ⚠️
internal/git/repo.go 90.90% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@raphi011
raphi011 merged commit 863b759 into main Apr 5, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant