You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix branch iterator crash, show rev arg leak, expand tests to 98
Bugs fixed:
- branch: GIT_ITEROVER is positive, not negative. Changed check from
err < 0 to err != 0 to properly terminate iteration.
- show: -n value was leaking into rev arg parser. Now skips the arg
after -n when searching for revision.
New tests (78 -> 98):
- branch: current branch marker, branch count, alias b, -H mode,
passthrough for -a/-r/--merged
- show rev:path: HEAD:path, specific-rev:path, relative rev, nonexistent
path exit code, binary file content
- NIT_COLORS: env var changes output, no effect without -H, invalid/empty
values don't crash
Known limitation: short aliases (b, s, d, l) with unknown flags pass
through as "git b" instead of "git branch", which git doesn't understand.
Use full command name for passthrough flags.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments