Repository navigation
feat(workspace): add origin op log and origin undo - #111
Open
PiquelChips wants to merge 1 commit into
Open
PiquelChips wants to merge 1 commit into
PiquelChips wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
PiquelChips
force-pushed
the
feat/events-undo
branch
2 times, most recently
from
November 22, 2026 18:54
ca6f5ea to
9419351
Compare
The op log records what every workspace did, but nothing showed it, and a command that moved the working copy somewhere unwanted couldn't be taken back. `origin op log [-n <count>]` lists the latest operations of every workspace, newest first, each with what its entries record, marking this workspace's. `origin undo` moves this workspace's working copy back to where it was before its latest operation that moved it, and checks it out. That is all it does: records and targets stay, since others may have them already, so an undone `land` still landed. Operations from other workspaces are never undone, nor are undos; undoing again takes back the operation before. If the revision moved back to is no longer a head of its change, as after `describe`, the working copy becomes a new revision with its contents and unresolved conflicts, so the change doesn't diverge. Looking a target's name up by its id now reads the one name file instead of listing every target.
PiquelChips
force-pushed
the
feat/events-undo
branch
from
November 22, 2026 19:20
9419351 to
38a9b30
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The op log records what every workspace did, but nothing showed it, and nothing could take back a command that moved the working copy somewhere unwanted.
origin op log [-n <count>]lists the latest operations of every workspace, newest first. Each comes with what its entries record, and this workspace's operations are marked.origin undomoves only this workspace's working copy back to where it was before its latest operation that moved it, and checks it out. Records and targets stay, since others may have them already, so an undonelandstill landed.undonever takes back operations from other workspaces, nor other undos. Undoing again takes back the operation before. Sometimes the revision moved back to is no longer a head of its change, as afterdescribe. The working copy then becomes a new revision with its contents and unresolved conflicts, so the change doesn't diverge.Looking up a target's name by its id now reads that target's name file instead of listing every target.
Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)