ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/src
Yuya Nishihara eb332b1d08 cli: make for_loaded_repo() callers specify whether repo/workspace are synced
It's wrong to deduce loaded_at_head from command-line arguments if the repo was
loaded at an arbitrary operation. Instead, the caller should specify whether
the working copy state is synchronized with the repo view.

I think .for_loaded_repo(ui, workspace, repo, true) would be bad for
readability, so I added separate functions. I'm not happy with the name
.for_temporary_repo(), but it seems okay for the current call sites.
2024-07-24 18:06:09 +09:00
..
commands cli: make for_loaded_repo() callers specify whether repo/workspace are synced 2024-07-24 18:06:09 +09:00
config cli: enable fileset by default 2024-07-24 10:49:46 +09:00
merge_tools files: relax requirement of merge() inputs 2024-07-18 11:34:43 +09:00
cleanup_guard.rs
cli_util.rs cli: make for_loaded_repo() callers specify whether repo/workspace are synced 2024-07-24 18:06:09 +09:00
command_error.rs str_util: add regex pattern 2024-07-22 12:00:52 +09:00
commit_templater.rs templater: add commit.diff().<format>() methods 2024-07-17 18:52:49 +09:00
config-schema.json cli: include untracked remote branches in default immutable_heads() 2024-07-15 23:41:07 +09:00
config.rs Show paths of config files when configurations contain errors 2024-06-10 10:14:36 +00:00
description_util.rs diff_util: remove WorkspaceCommandHelper dependency from show functions 2024-05-14 09:36:13 +09:00
diff_util.rs diff: move materialized_diff_stream() to jj_lib::conflicts module 2024-07-18 01:01:16 +09:00
formatter.rs formatter: minor cleanup in --color=debug handling 2024-07-13 11:08:01 +09:00
generic_templater.rs templater: implement expect_*_arguments() as methods 2024-05-22 10:18:05 +09:00
git_util.rs ui: remove Option<_> wrapping from ui.hint_() helpers 2024-06-18 09:37:23 +09:00
graphlog.rs graphlog: refactor out node symbols from GraphLog 2024-03-12 08:25:58 +05:00
lib.rs cli: extract primitives for user revset parsing and evaluation 2024-03-14 22:59:43 +09:00
main.rs
operation_templater.rs templater: implement expect_*_arguments() as methods 2024-05-22 10:18:05 +09:00
progress.rs cli: clear line after writing 2024-05-30 12:27:11 -05:00
revset_util.rs cli: Ignore immutable() in jj git push conflict/desc/user checks 2024-06-24 10:45:29 +10:00
template.pest fileset, revset, templater: add support for single-quoted raw string literals 2024-04-25 11:14:33 +09:00
template_builder.rs dsl_util: add keyword arguments and parsing helper to FunctionCallNode 2024-05-29 22:36:15 +09:00
template_parser.rs revset, templater: implement arity-based alias overloading 2024-06-14 23:11:29 +09:00
templater.rs templater: add SizeHint type to represent revset.count_estimate() value 2024-05-09 08:51:34 +09:00
text_util.rs cli: add ui.color = "debug" 2024-05-11 10:16:09 +02:00
time_util.rs templater: propagate <out-of-range date> as an error 2024-02-29 01:30:43 +09:00
ui.rs ui: remove Option<_> wrapping from ui.hint_() helpers 2024-06-18 09:37:23 +09:00