-
Notifications
You must be signed in to change notification settings - Fork 871
Description
Is your feature request related to a problem? Please describe.
When I'm mixing my use of jj and other tools, I sometimes want to reconcile milestones in the other tool with entries in the op log. For example, if I'm running a tool that's going to mutate files, I want to note when I start the tool and when it finishes — JetBrains IDE's local history has a similar feature, where they show tests passing and failing in the history view.
Creating separate commits for these operations isn't quite what I'm looking for, especially as the tool might create new commits as it runs :).
Describe the solution you'd like
A new sub-command, perhaps jj operation record, that creates an empty transaction with the provided description.
Describe alternatives you've considered
It looks like jj util exec doesn't snapshot, but if it did then jj util exec echo "Your description here" might be a way to achieve what I want. Although that would still only add an operation if there were changes to snapshot.
Additional context
I have an implementation that I'll push as a PR shortly. If the feature doesn't fit into the project roadmap then please don't worry about telling me — I have learned a lot by implementing it, and I had fun, so it's not "wasted effort".