Skip to content

Commit

Permalink
cli: reference config settings for 'jj log -T' and 'jj git push -c'
Browse files Browse the repository at this point in the history
  • Loading branch information
neongreen committed Nov 9, 2024
1 parent 7d34194 commit d77ca15
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cli/src/commands/git/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ pub struct GitPushArgs {
revisions: Vec<RevisionArg>,
/// 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<RevisionArg>,
/// Only display what will change on the remote
Expand Down
7 changes: 6 additions & 1 deletion cli/src/commands/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
/// Show patch
Expand Down
8 changes: 7 additions & 1 deletion cli/tests/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -1133,6 +1133,8 @@ Before the command actually moves, creates, or deletes a remote bookmark, it mak
* `--allow-private` — Allow pushing commits that are private
* `-r`, `--revisions <REVISIONS>` — Push bookmarks pointing to these commits (can be repeated)
* `-c`, `--change <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
Expand Down Expand Up @@ -1312,7 +1314,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 <TEMPLATE>` — 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.
* `-p`, `--patch` — Show patch
* `-s`, `--summary` — For each path, show only whether it was modified, added, or deleted
* `--stat` — Show a histogram of the changes
Expand Down

0 comments on commit d77ca15

Please sign in to comment.