Commit Graph

4 Commits

Author SHA1 Message Date
Remo Senekowitsch
3899e178a0 cli undo: warn about undoing push operations
Undoing a push operation does not undo the effects on the remote.
Bookmarks on the remote will stay in place, but the local repository
will forget about their state. If the bookmarks are subsequently
moved and pushed, that later push will fail, since the bookmarks have
"unexpectedly" moved on the remote. Therefore, add a warning telling
users to run `jj redo` to avoid these complications.
2025-11-02 16:13:00 +00:00
David Higgs
88fd87b243 tests: exercise --quiet for undo, redo, duplicate 2025-10-29 13:15:23 +00:00
Martin von Zweigbergk
017d34625b undo: hint about jj op restore when trying to undo merge operation 2025-10-14 05:19:46 +00:00
Remo Senekowitsch
b605639c49 cli: add redo command
This is the natural counterpart of `jj undo`. Adding `jj redo` closes
the last gap in functionality to the "undo" features of typical GUI
applications. This is much more intuitive to new users and useful than
the previous undo semantics. (Which are preserved as `jj op revert`.)

Related feature request "jj undo ergonomics":
https://github.com/jj-vcs/jj/issues/3700
2025-08-26 13:50:38 +00:00