jj/tests
Martin von Zweigbergk 87ba11592b cli: make log -s/--git imply -p
`log -s/--summary` and `log --git` without `-p` don't do anything. I
also don't think it's very useful to pass these flags in an alias,
where you would then sometimes also pass `-p` to see the diff summary
in the output. We already have the `diff.format` config for that use
case. So let's make both of these flags imply `-p`.

I implemented it by making the `diff_format` variable an
`Option<DiffFormat>`, which is set iff we should show a patch. That
way we have the condition in one place, and the places we use it
cannot forget to check it.
2022-05-13 03:19:10 -07:00
..
common tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
smoke_test.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_alias.rs cli: allow alias after global args, and recursive aliases 2022-05-12 06:30:27 -07:00
test_branch_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_concurrent_operations.rs cli: add hard-coded support for specifying previous operation 2022-04-26 10:42:29 -07:00
test_describe_command.rs cli: respect $VISUAL, overriding $EDITOR 2022-05-10 10:39:59 -07:00
test_diff_command.rs tests: add tests for jj diff 2022-04-02 14:22:58 -07:00
test_edit_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_git_colocated.rs cli: when auto-importing from git, rebase descendants 2022-05-02 17:01:38 -07:00
test_git_push.rs cli: add a mode of pushing with branch taken from change ID 2022-04-29 15:55:03 -07:00
test_git_remotes.rs cli: add a command for listing git remotes and their URLs 2022-04-29 14:08:24 -07:00
test_gitignores.rs tests: move testutils from src/ to tests/ 2022-04-02 14:22:58 -07:00
test_global_opts.rs cli: allow config in ~/.jjconfig.toml 2022-05-10 10:21:22 -07:00
test_init_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_log_command.rs cli: make log -s/--git imply -p 2022-05-13 03:19:10 -07:00
test_move_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_new.rs tests: use jj_cmd_success() in one more place 2022-04-14 23:46:28 -07:00
test_operations.rs graphlog: don't de-indent multi-line text at end of chain 2022-05-11 04:42:44 -07:00
test_print_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_rebase_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_restore_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_sparse_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_split_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_squash_command.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00
test_undo.rs cli: make operation to undo or restore to a positional argument 2022-04-25 17:29:48 -07:00
test_untrack_command.rs tests: check exit code on failure, and fix a bug in argument parsing 2022-05-10 04:02:24 -07:00
test_workspaces.rs tests: re-run with insta crate version b9d99e87065b 2022-04-28 16:55:10 -07:00