Skip to content

Commit

Permalink
docs/config: Document where to set default templates
Browse files Browse the repository at this point in the history
The user may want to know how to change the default template used. To
help this, add documentation about how to change this on the configs.
  • Loading branch information
Grillo-0 committed Oct 20, 2024
1 parent 9134066 commit 4f6a1c0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,24 @@ revsets.log = "main@origin.."
The default value for `revsets.log` is
`'present(@) | ancestors(immutable_heads().., 2) | present(trunk())'`.

### Default Template

You can configure the template used when no `-T` is specified.

- `templates.log` for `jj log`
- `templates.op_log` for `jj op log`
- `templates.show` for `jj show`

```toml
[templates]
# Use builtin log template
log = "builtin_log_compact"
# Use builtin op log template
op_log = "builtin_log_compact"
# Use builtin show template
show = "builtin_log_detailed"
```

### Graph style

```toml
Expand Down

0 comments on commit 4f6a1c0

Please sign in to comment.