diff --git a/pages/common/jj-operation-log.md b/pages/common/jj-operation-log.md new file mode 100644 index 0000000000..0819763ac5 --- /dev/null +++ b/pages/common/jj-operation-log.md @@ -0,0 +1,10 @@ +# jj operation log + +> View log of operations of this jj repository as a graph. +> Operation ID copied from here can be passed to other commands to run them at that operation. +> They can also be passed to `jj operation restore` to restore the repository to that state. +> More information: . + +- Show operation log: + +`jj {{[op|operation]}} log` diff --git a/pages/common/jj-operation-restore.md b/pages/common/jj-operation-restore.md new file mode 100644 index 0000000000..077ccd1049 --- /dev/null +++ b/pages/common/jj-operation-restore.md @@ -0,0 +1,9 @@ +# jj operation restore + +> Restore the repository to an earlier state. +> `jj operation log` can be used to find the operation ID to be passed here. +> More information: . + +- Restore the repository to its state at the given operation: + +`jj {{[op|operation]}} restore {{operation}}` diff --git a/pages/common/jj-operation-show.md b/pages/common/jj-operation-show.md new file mode 100644 index 0000000000..2aea7d825a --- /dev/null +++ b/pages/common/jj-operation-show.md @@ -0,0 +1,13 @@ +# jj operation show + +> Show changes to the repository in an operation. +> More information: . + +- Show changes in an operation: + +`jj {{[op|operation]}} show {{operation}}` + +- Show stat, summary and patch of modifications of an operation: + +`jj {{[op|operation]}} show {{--stat}} {{[-s|--summary]}} {{[-p|--patch]}} {{operation}}` + diff --git a/pages/common/jj-operation-undo.md b/pages/common/jj-operation-undo.md new file mode 100644 index 0000000000..02349d8726 --- /dev/null +++ b/pages/common/jj-operation-undo.md @@ -0,0 +1,12 @@ +# jj operation undo + +> Creates a new operation that undoes an earlier operation. +> More information: . + +- Undo the last operation: + +`jj {{[op|operation]}} undo` + +- Undo the given operation: + +`jj {{[op|operation]}} undo {{operation}}`