Skip to content

Commit 3d8348f

Browse files
adamseyuja
authored andcommitted
docs: link to type of self in template helptext
1 parent f058cb2 commit 3d8348f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/config.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ default-command = ["log", "--reversed"]
182182
### Default description
183183

184184
The editor content of a commit description can be populated by the
185-
`draft_commit_description` template.
185+
`draft_commit_description` template. `self` is a [`Commit`
186+
object](templates.md#commit-type).
186187

187188
```toml
188189
[templates]
@@ -214,7 +215,8 @@ Closes #NNNN
214215

215216
By default, `jj duplicate` copies the descriptions from the original commits.
216217
You can customize this behavior by specifying the `duplicate_description`
217-
template, which is given a `Commit` type of the original commit.
218+
template, which is given a [`Commit` object](templates.md#commit-type) of the
219+
original commit.
218220

219221
```toml
220222
[templates]

0 commit comments

Comments
 (0)