chriswalz / bit

Bit is a modern Git CLI
Apache License 2.0
6.05k stars 106 forks source link

Alias for git switch does not open branch selector #110

Closed ianrobrien closed 3 years ago

ianrobrien commented 3 years ago

Describe the bug I have two git aliases set in my gitconfg:

[alias]
    co = checkout
    sw = switch

When I type bit co and hit enter, I am able to select my branch. When I type bit checkout and hit enter, I am able to select my branch. When I type bit switch and hit enter, I am able to select my branch.

When I type bit sw and hit enter, I get fatal: missing branch or commit argument

To Reproduce Steps to reproduce the behavior:

  1. Add the alias sw = switch to your gitconfig
  2. Type bit sw

Expected behavior I expect a "dropdown" list of some branches that I can navigate with the up and down arrow keys, or match by typing, in the same way as when I type bit checkout or bit switch.

Desktop (please complete the following information):

chriswalz commented 3 years ago

fixed in c7879cd5b

chriswalz commented 3 years ago

Consider donating here: https://github.com/sponsors/chriswalz :)