mirror of
https://github.com/jj-vcs/jj.git
synced 2025-12-23 06:01:01 +00:00
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 |
||
|---|---|---|
| .. | ||
| commands | ||
| config | ||
| merge_tools | ||
| cleanup_guard.rs | ||
| cli_util.rs | ||
| command_error.rs | ||
| commit_templater.rs | ||
| config-schema.json | ||
| config.rs | ||
| description_util.rs | ||
| diff_util.rs | ||
| formatter.rs | ||
| generic_templater.rs | ||
| git_util.rs | ||
| graphlog.rs | ||
| lib.rs | ||
| main.rs | ||
| operation_templater.rs | ||
| progress.rs | ||
| revset_util.rs | ||
| template.pest | ||
| template_builder.rs | ||
| template_parser.rs | ||
| templater.rs | ||
| text_util.rs | ||
| time_util.rs | ||
| ui.rs | ||