-
Notifications
You must be signed in to change notification settings - Fork 343
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
FR: Add an option "jj rebase --skip_empty" or similar #2588
Comments
Happy to assign this to myself, looking at the code it doesn't look too hard |
Sounds like a duplicate of #229? |
API clarification: Should I make it
|
I agree that we should not make it interactive. What's the FR for Regarding the exact name, do you think we should even call it |
As you said, dup of #229, we can continue discussions there |
Is your feature request related to a problem? Please describe.
When you rebase commits that have been squashed, you end up with empty commits.
I always have to follow up
"jj rebase -s 'all:(children(IMMUTABLE) & ~IMMUTABLE)' -d main@origin"
withjj abandon 'empty() & ~IMMUTABLE & ~merges()
.Describe the solution you'd like
Git rebase has "--empty=drop|keep|ask". I imagine a similar solution would work just fine for jj
Describe alternatives you've considered
I currently run
jj abandon 'EMPTY
after rebasing every timeAdditional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: