Skip to content

fix(git): pass through verbose branch listings - #4936

Open
alexrain wants to merge 1 commit into
rtk-ai:developfrom
alexrain:fix/branch-vv-metadata
Open

alexrain wants to merge 1 commit into
rtk-ai:developfrom
alexrain:fix/branch-vv-metadata

Conversation

@alexrain

@alexrain alexrain commented Nov 2, 2026

Copy link
Copy Markdown

Fixes #1499.

rtk git branch -vv was routed through the compact list filter, which kept only branch names and silently dropped the commit hash, upstream tracking marker, and subject that -vv exists to show. Verbose list flags (-v, -vv, --verbose, including clusters such as -av) now pass git's output through unchanged. Non-verbose listings keep the compact grouped format.

Tests: cargo test --lib test_branch_wants_verbose.

@rtk-wshm-sync-bot rtk-wshm-sync-bot Bot added bug Something isn't working effort-small Quelques heures, 1 fichier filter-quality Filter produces incorrect/truncated signal git labels Nov 2, 2026
@rtk-wshm-sync-bot

Copy link
Copy Markdown

wshm · Automated triage by AI

📊 Automated PR Analysis

🐛 Type bug-fix
🟢 Risk low

Summary

Fixes rtk git branch -vv/-v/--verbose (including flag clusters like -av) so verbose output is passed through from git unchanged instead of being routed through the compact list filter that silently dropped commit hashes, upstream tracking markers, and commit subjects. Non-verbose branch listings continue to use the existing compact grouped format. A new branch_wants_verbose helper detects verbose flags via argument tokenization, with a unit test covering positive and negative cases.

Review Checklist

  • Tests present
  • Breaking change
  • Docs updated

Linked issues: #1499


Analyzed automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working effort-small Quelques heures, 1 fichier filter-quality Filter produces incorrect/truncated signal git

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk git branch -vv strips commit hashes, tracking markers, and remote metadata — filter has no -vv awareness

1 participant