You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make jj util snapshot print a small receipt of the resulting state.
If the working-copy commit changed, print the normal working-copy
summary. Otherwise, print the current working-copy change id. If the
command advanced the repo state, also print the current operation
summary.
This keeps the command lightweight while making it easier for humans
and tools to see what state it left the repo in.
Copy file name to clipboardExpand all lines: cli/tests/cli-reference@.md.snap
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3550,9 +3550,9 @@ Print the CLI help for all subcommands in Markdown
3550
3550
3551
3551
Snapshot the working copy if needed
3552
3552
3553
-
Snapshots the working copy and updates the working-copy commit if the working copy has changed since the last snapshot. Since almost every command snapshots the working copy, there is very little reason to run this command as a human; it is mostly meant for scripts.
3553
+
Snapshots the working copy and updates the working-copy commit if the working copy has changed since the last snapshot. Since almost every command snapshots the working copy, there is very little reason to run this command as a human; it is mostly meant for scripts. It prints the resulting working-copy state, and if the command advanced the repo state it also prints the resulting operation summary.
3554
3554
3555
-
If you want to see the ID of the current operation after this command, run `jj operation log --limit 1`. However, since that command also snapshots the working copy, there would be no need to run `jj util snapshot` first.
3555
+
If you want to query the current operation ID directly, run `jj operation log --limit 1`. However, since that command also snapshots the working copy, there would often be no need to run `jj util snapshot` first.
0 commit comments