Description
rtk git branch -a only outputs the current local branch, silently dropping all remotes/origin/* lines. The -r flag works correctly and shows remote branches.
Steps to reproduce
# Repo with a pushed remote (origin/main)
rtk git branch -a
# Output:
# * main
rtk git branch -r
# Output:
# *
# origin/HEAD -> origin/main
# origin/main
# Native git (bypassing rtk) works correctly:
/usr/bin/git branch -a
# * main
# remotes/origin/HEAD -> origin/main
# remotes/origin/main
Expected behavior
rtk git branch -a should display both local and remote-tracking branches, matching native git branch -a output.
Environment
- rtk version: 2.3.3
- OS: macOS Darwin 25.5.0
- Shell: zsh
Notes
Description
rtk git branch -aonly outputs the current local branch, silently dropping allremotes/origin/*lines. The-rflag works correctly and shows remote branches.Steps to reproduce
Expected behavior
rtk git branch -ashould display both local and remote-tracking branches, matching nativegit branch -aoutput.Environment
Notes
rtk helpforgit branchdescribes it as "Compact branch listing (current/local/remote)", suggesting remote display is intended./usr/bin/git branch -ato bypass the hook.rtk git branch -vvstrips commit hashes, tracking markers, and remote metadata — filter has no-vvawareness #1499 (branch -vvstrips tracking markers)