ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/src
Martin von Zweigbergk 31eff96cb7 cli: record full argv in operation log
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.
2021-05-09 22:42:13 -07:00
..
commands.rs cli: record full argv in operation log 2021-05-09 22:42:13 -07:00
diff_edit.rs trees: make tree diff return an iterator instead of taking a callback 2021-04-07 23:18:00 -07:00
graphlog.rs cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
lib.rs commands: add an interactive mode for jj restore 2020-12-26 01:16:19 -08:00
main.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
styler.rs cli: replace committer email by author timestamp in log template 2021-04-26 21:30:14 -07:00
template.pest import commit 0f15be02bf4012c116636913562691a0aaa7aed2 from my hg repo 2020-12-12 00:23:38 -08:00
template_parser.rs cli: replace committer email by author timestamp in log template 2021-04-26 21:30:14 -07:00
templater.rs repo: make MutableRepo have an Arc<ReadonlyRepo> instead of a reference 2021-04-11 13:42:31 -07:00
testutils.rs tests: set $HOME in a few tests to avoid depending in developer's ~/.gitignore 2021-03-16 22:05:36 -07:00
ui.rs cli: terminate gracefully on broken pipe 2021-04-07 23:26:19 -07:00