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

allow branch.create to accept source hash #5363

Open
ceedubs opened this issue Sep 23, 2024 · 1 comment
Open

allow branch.create to accept source hash #5363

ceedubs opened this issue Sep 23, 2024 · 1 comment

Comments

@ceedubs
Copy link
Contributor

ceedubs commented Sep 23, 2024

Is your feature request related to a problem? Please describe.

I want to quickly create a branch from a point in history.

I tried @ceedubs/exists/main> branch #oou75lskn1 testing. It didn't work and the output doesn't really make any sense to me:

@ceedubs/exists/main> branch #oou75lskn1 testing                                                                                                                                                                                              
                                                           
  ⚠️                                b
                                                                                                                                                                                                                                              
  Sorry, I wasn’t sure how to process your request:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    #oou75lskn1
    ^-- This is where I gave up.                                                                                                                                                                                                              
                   
                                            
    I expected ''/''''@'''"releases/"''"releases/drafts/"' and I found "#oou75lskn1".                                  
                                                                                                                       
  You can run `help branch` for more information on using `branch`.                  

I was able to work around it by first running branch testing and then reset #oou75lskn1.

Describe the solution you'd like

I would like to be able to run branch #oou75lskn1 testing or branch.create #oou75lskn1 testing to create a testing branch off of #oou75lskn1.

And then the logical next step would be to allow branch 3 testing to do the same if 3 is the numbered arg corresponding to #oou75lskn1 from a previous history command.

@aryairani
Copy link
Contributor

aryairani commented Sep 23, 2024

Yeah this is good.

I was able to work around it by first running branch testing and then reset #oou75lskn1.

Just highlighting the workaround here in case anyone needs it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants