From 89b6f7e2c3525533b89432eba2edd893b1a7db3a Mon Sep 17 00:00:00 2001 From: Geoffrey Grosenbach <26+topfunky@users.noreply.github.com> Date: Mon, 25 Aug 2025 06:29:49 -0700 Subject: [PATCH] jj: add edit, undo (#17709) --- pages/common/jj.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pages/common/jj.md b/pages/common/jj.md index bcfa929bc3..dc752900f1 100644 --- a/pages/common/jj.md +++ b/pages/common/jj.md @@ -6,9 +6,9 @@ - Update description of the revisions specified by given revsets (e.g. `B::D`, `A..D`, `B|C|D`, etc.): -`jj {{[desc|describe]}} {{[-r|--revision]}} {{revsets}}` +`jj {{[desc|describe]}} {{[-m|--message]}} "{{message}}" {{[-r|--revision]}} {{revsets}}` -- Create a new commit/revision on top of a given revision : +- Create a new commit/revision on top of a given revision: `jj new {{revset}}` @@ -16,6 +16,14 @@ `jj new {{revset1 revset2 ...}}` +- Update the working copy to point to a revision: + +`jj edit {{revset}}` + +- Undo the previous command (which may itself have been `undo`): + +`jj undo` + - Execute a jj subcommand without snapshotting the working copy: `jj --ignore-working-copy {{subcommand}}`