mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 03:22:59 +00:00
cli: don't reuse ui.hint_default() instance to print multiple hints
ui.hint_*() calls will be inlined by the next commit.
This commit is contained in:
parent
1ab0c91e51
commit
a162e4f1a4
1 changed files with 2 additions and 0 deletions
|
@ -2485,6 +2485,8 @@ fn resolve_default_command(
|
|||
if args.is_none() {
|
||||
if let Some(mut writer) = ui.hint_default() {
|
||||
writeln!(writer, "Use `jj -h` for a list of available commands.")?;
|
||||
}
|
||||
if let Some(mut writer) = ui.hint_no_heading() {
|
||||
writeln!(
|
||||
writer,
|
||||
"Run `jj config set --user ui.default-command log` to disable this \
|
||||
|
|
Loading…
Reference in a new issue