Skip to content

fix(aliases): add gb shortcut for git branch - #513

Merged
primetimetank21 merged 1 commit into
developfrom
fix/512-gb-alias
Sep 25, 2026
Merged

primetimetank21 merged 1 commit into
developfrom
fix/512-gb-alias

Conversation

@primetimetank21

Copy link
Copy Markdown
Owner

Summary

  • Add gb → git branch to the shared Bash/Zsh aliases.
  • Remove the obsolete Windows-only gb exception so alias-parity tests guard against its removal.
  • Leave Windows (which already has gb) and local WSL shutdown overrides unchanged.

Closes #512.

Validation

  • bash -n config/dotfiles/.aliases tests/test_alias_parity.sh
  • bash tests/test_alias_parity.sh — passed
  • bash tests/test_aliases.sh — 6 passed, 0 failed
  • Clean Bash runtime check with mocked Git confirms gb --list "feature/*" forwards branch, --list, and feature/* unchanged.
  • git diff --check

Zsh and ShellCheck are not installed locally; neither was run. This is a nonvisual shell-alias change.

Closes #512.

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>

@primetimetank21 primetimetank21 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review of 6596ee9: no findings.

  • Two-line scope is correct: add gb=git branch to shared Bash/Zsh aliases and remove its Windows-only parity exception. Existing Windows Get-GitBranch already forwards to git branch.
  • Re-ran Bash syntax, alias parity, all six existing alias tests, and mocked-Git checks with and without arguments at the exact PR head; all passed. Diff whitespace check passed.
  • All 10 PR CI checks passed, including Linux/macOS/Windows E2E and PowerShell 5.1 compatibility. The user also confirmed the shortcut works on WSL.
  • No shutdown helper changes are included.

Proceeding with the requested regular merge using the owner override documented in CONTRIBUTING.md, solely because GitHub does not allow the solo owner to self-approve.

@primetimetank21
primetimetank21 merged commit 6fb62d7 into develop Sep 25, 2026
10 checks passed
@primetimetank21
primetimetank21 deleted the fix/512-gb-alias branch September 25, 2026 04:06
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.

Add gb shell alias for git branch

1 participant