jj/cli/src
Yuya Nishihara d6e97883df cli: port description template to templater
This implements a building block of "signed-off-by line" #1399 and "commit
--verbose" #1946. We'll probably need an easy way to customize the diff part,
but I'm not sure if it can be as simple as a template alias function. User
might want to embed diffs without "JJ: " prefixes?

Perhaps, we can deprecate "ui.default-description", but it's not addressed in
this patch. It could be replaced with "default_description" template alias,
but we might want to configure default per command. Suppose we add a default
"backout_description" template, it would have to be rendered against the
source commit, not the newly-created backout commit.

The template key is named as "draft_commit_description" because it is the
template to generate an editor template. "templates.commit_description_template"
sounds a bit odd.

There's one minor behavior change: the default description is now terminated
by "\n".

Closes #1354
2024-07-25 22:39:00 +09:00
..
commands cli: port description template to templater 2024-07-25 22:39:00 +09:00
config cli: port description template to templater 2024-07-25 22:39:00 +09:00
merge_tools files: relax requirement of merge() inputs 2024-07-18 11:34:43 +09:00
cleanup_guard.rs No need for Lazy in LIVE_GUARDS 2023-08-22 02:12:05 -04:00
cli_util.rs cli: port description template to templater 2024-07-25 22:39:00 +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 cli: port description template to templater 2024-07-25 22:39:00 +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 cli: move src/ directory to new cli/ directory 2023-08-04 19:00:42 -05:00
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