diff --git a/cli/src/commands/git/push.rs b/cli/src/commands/git/push.rs index 05e406df1f..127ccf368b 100644 --- a/cli/src/commands/git/push.rs +++ b/cli/src/commands/git/push.rs @@ -114,6 +114,9 @@ pub struct GitPushArgs { revisions: Vec, /// Push this commit by creating a bookmark based on its change ID (can be /// repeated) + /// + /// Use the `git.push-bookmark-prefix` setting to change the prefix for + /// generated names. #[arg(long, short)] change: Vec, /// Only display what will change on the remote diff --git a/cli/src/commands/log.rs b/cli/src/commands/log.rs index 060dbb811b..e3a04c3239 100644 --- a/cli/src/commands/log.rs +++ b/cli/src/commands/log.rs @@ -77,7 +77,12 @@ pub(crate) struct LogArgs { no_graph: bool, /// Render each revision using the given template /// - /// For the syntax, see https://martinvonz.github.io/jj/latest/templates/ + /// Run `jj log -T` to list the built-in templates. + /// + /// You can also specify arbitrary template expressions. For the syntax, + /// see https://martinvonz.github.io/jj/latest/templates/. + /// + /// If not specified, this defaults to the `templates.log` setting. #[arg(long, short = 'T')] template: Option, /// Show patch diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index 826e787fe2..3c3cec0993 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1134,6 +1134,8 @@ Before the command actually moves, creates, or deletes a remote bookmark, it mak * `--allow-private` — Allow pushing commits that are private * `-r`, `--revisions ` — Push bookmarks pointing to these commits (can be repeated) * `-c`, `--change ` — Push this commit by creating a bookmark based on its change ID (can be repeated) + + Use the `git.push-bookmark-prefix` setting to change the prefix for generated names. * `--dry-run` — Only display what will change on the remote @@ -1313,7 +1315,11 @@ Spans of revisions that are not included in the graph per `--revisions` are rend * `--no-graph` — Don't show the graph, show a flat list of revisions * `-T`, `--template