mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-29 19:11:11 +00:00
When using the command line interface (which is the only interface so far), it seems more useful to see the exact command that was run than a logical description of what it does. This patch makes the CLI record that information in the operation metadata in a new key/value field. I put it in a generic key/value field instead of a more specialized field because the key/value field seems like a useful thing to have in general. However, that means that we "have to" do shell-escaping when saving the data instead of leaving the data unescaped and adding the shell-escaping when presenting it. I added very simple shell-escaping for now.