jj/docs
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
..
design cleanup: leverage BoxStream/BoxFuture type aliases 2024-06-26 11:34:52 +09:00
technical docs: update description of conflicts to be about tree-level conflicts 2023-11-30 14:24:48 -08:00
branches.md jj git push docs: document safety checks 2024-06-01 11:19:48 -07:00
cli-reference.md docs CLI Reference: make the warning in the beginning less scary 2024-06-15 20:30:40 -07:00
code-of-conduct.md docs: s/socio-economics/socioeconomics/ per codespell suggestion 2024-05-24 11:34:03 +09:00
community_tools.md Add hunk.nvim to list of community tools 2024-07-22 15:29:54 -06:00
config.md cli: port description template to templater 2024-07-25 22:39:00 +09:00
config.toml docs: document git.fetch and git.push config options 2024-02-09 12:03:42 -06:00
conflicts.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
contributing.md cli: include untracked remote branches in default immutable_heads() 2024-07-15 23:41:07 +09:00
design_doc_blueprint.md docs: Add a Design Doc blueprint. 2024-06-30 15:37:40 +02:00
design_docs.md docs: Add a Design Doc blueprint. 2024-06-30 15:37:40 +02:00
FAQ.md FAQ: Add some more variants on how to deal with temporary files 2024-07-11 20:01:57 +02:00
filesets.md cli: enable fileset by default 2024-07-24 10:49:46 +09:00
git-comparison.md docs: replace jj files -> jj file list 2024-06-24 21:01:55 -07:00
git-compatibility.md docs/git-comparison.md: update the Signed_commits bullet 2024-07-17 17:12:34 +02:00
github.md docs: ask MkDocs to fail on links to non-existent sections 2024-05-14 13:14:27 -07:00
glossary.md docs: fix another missing shell quoting around root() 2024-06-04 21:19:16 +09:00
index.md docs index.md: explain that the website sidebar may be hidden 2023-10-04 05:25:37 -07:00
install-and-setup.md docs install_and_setup: move Arch Linux after From Source 2024-06-09 10:15:16 -07:00
operation-log.md op_walk: add support for op_id+ (children) operator 2024-01-02 10:30:08 +09:00
related-work.md politics: delete references to Pijul 2024-04-14 13:16:08 -07:00
revsets.md str_util: add regex pattern 2024-07-22 12:00:52 +09:00
sapling-comparison.md docs: explain that jj was started 3 years before Sapling announcement 2024-06-20 05:24:28 +09:00
templates.md templater: add commit.diff().<format>() methods 2024-07-17 18:52:49 +09:00
testimonials.md docs: Add a Testmonials page. 2024-02-25 14:20:33 +01:00
tutorial.md cli_util: add missing word in conflict resolution instructions 2024-07-17 08:10:25 +02:00
windows.md docs: update windows docs to mention minus, update minus docs 2024-06-10 11:47:34 -07:00
working-copy.md docs: say that we support $GIT_DIR/info/exclude 2024-03-08 09:59:10 -08:00