forked from tangled.org/core
See also https://github.com/ilyagr/tangled-core

contributing.md: simplify `jj` sign-off instructions

This functionality seems to be available since jj 0.29.

Signed-off-by: Ilya Grigoriev <ilyagr@users.noreply.github.com>

Changed files
+5 -15
docs
+5 -15
docs/contributing.md
··· 115 115 If you're submitting a PR with multiple commits, make sure each one is 116 116 signed. 117 117 118 - For [jj](https://jj-vcs.github.io/jj/latest/) users, you can add this to 119 - your jj config: 120 - 121 - ``` 122 - ui.should-sign-off = true 123 - ``` 124 - 125 - and to your `templates.draft_commit_description`, add the following `if` 126 - block: 118 + For [jj](https://jj-vcs.github.io/jj/latest/) users, you can run the following command 119 + to make it sign off commits in the tangled repo: 127 120 128 - ``` 129 - if( 130 - config("ui.should-sign-off").as_boolean() && !description.contains("Signed-off-by: " ++ author.name()), 131 - "\nSigned-off-by: " ++ author.name() ++ " <" ++ author.email() ++ ">", 132 - ), 121 + ```shell 122 + jj config set --repo templates.commit_trailers "format_signed_off_by_trailer(self)" 133 123 ``` 134 124 135 125 Refer to the [jj 136 - documentation](https://jj-vcs.github.io/jj/latest/config/#default-description) 126 + documentation](https://jj-vcs.github.io/jj/latest/config/#commit-trailers) 137 127 for more information.