From 7e4ae2965de3ae0821a22cccaf092555c893dba1 Mon Sep 17 00:00:00 2001 From: Agam Agarwal Date: Thu, 3 Jul 2025 18:12:35 +0530 Subject: [PATCH] jj-operation: add pages (#17045) --- pages/common/jj-operation.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/jj-operation.md diff --git a/pages/common/jj-operation.md b/pages/common/jj-operation.md new file mode 100644 index 0000000000..f4bb5ab9f7 --- /dev/null +++ b/pages/common/jj-operation.md @@ -0,0 +1,28 @@ +# jj operation + +> Work with the operation log of a `jj` repository. +> More information: . + +- Show operation log: + +`jj {{[op|operation]}} log` + +- Undo the last operation: + +`jj {{[op|operation]}} undo` + +- Undo a given operation: + +`jj {{[op|operation]}} undo {{operation}}` + +- Restore the repository to its state at a given operation: + +`jj {{[op|operation]}} restore {{operation}}` + +- Show changes to the repository 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}}`