Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support partial branch name in switch command #89

Closed
sergionalin opened this issue Jan 19, 2013 · 2 comments
Closed

Support partial branch name in switch command #89

sergionalin opened this issue Jan 19, 2013 · 2 comments

Comments

@sergionalin
Copy link

This is a "nice to have" feature that could save some typing time like:

legit switch ma

or

legit switch ter

to switch to ma[ster]

Behavior could be something like:

if given branch exists: switch to it (current behavior).
if it does not: look for given name fragment (case insensitive) in the branches list. If only one branch matches, switch to it. If more than one branch matches: stop and output error with list of matching branches.

@kennethreitz
Copy link
Collaborator

Hmm, this could be interesting.

@wkentaro
Copy link
Contributor

This can be closed.

% legit switch ma
Switching to master.
Switched to a new branch 'master'
Branch master set up to track remote branch master from origin.

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

No branches or pull requests

4 participants