-
Notifications
You must be signed in to change notification settings - Fork 455
FR: jj revert
should have defaults
#6358
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
Comments
I don't think it's that straightforward to just default to If users want to revert the commit that they are working on:
If users want to revert an arbitrary commit which they might not be editing or working on (e.g. reverting a change in another branch), the desired command is probably So, setting the default to Note that |
Opinion: it shouldn't matter what workflow is being used, in order to have a default. Since other commands have the But creating a new |
This is very atypical in the way I work. Why would you want to do that instead of doing (Jujutsu tries to make it easy to create clean commits. Creating a commit and then reverting it right after seems to go against that.) |
In my case I had pushed a commit to Github that I wish I had split up. To document the intended split, I reverted part of that pushed commit, and then reverted the revert again, and pushed these two. |
I think it's a typical use case to use
jj revert
in at least one of these situations:It seems this could be achieved by letting
jj revert
default tojj revert -d @ -r @
. This would be in line with many other commands having@
as default (describe
,split
, ...).I'd be willing to give it a shot to implement.
The text was updated successfully, but these errors were encountered: