Should jj op restore be considered as part of the undo stack as well?
#8155
Replies: 3 comments 1 reply
-
|
It's intentional that we don't include explicit cc @senekor |
Beta Was this translation helpful? Give feedback.
-
|
In that case, would it then make sense, from an user perspective to perform "n" undos in a single operation This is conceptually Practically, it can be implemented by multiple invocations of Or we can simply document that EDIT: My POV being that |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, that was an intentional decision. I'm open to documenting this better. My perspective when implementing the feature was that of trying to teach jj to people without any VCS experience. The So, while it's tempting to make them work together, since they are implemented very similarly, I think it's better to think of them as completely different commands. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been looking at the implementations of the undo and redo stack, and it looks like it might be easy to support jj restore operations as part of the undo stack
Am I missing something intentional?
Currently, there's a difference between the following sequence of operations
Repo 1
Repo 2
The difference is
jj op restore '@--'vs.jj undo(x2)The outcome of both those operations are the same at that point
However, subsequent undo operations behave differently because jj op restore is not part of the undo / redo stack
The first puts you at D
The second puts you at A
Beta Was this translation helpful? Give feedback.
All reactions