ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
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
..
examples cli: uncapitalize op description of "workspace add" and custom command example 2024-07-24 18:06:09 +09:00
src cli: port description template to templater 2024-07-25 22:39:00 +09:00
testing cli: skip formatting instructions if not required 2024-07-09 20:24:14 -05:00
tests cli: port description template to templater 2024-07-25 22:39:00 +09:00
build.rs
Cargo.toml cli: remove unused dependency on gix-filter 2024-07-17 11:53:51 +02:00
LICENSE