diff --git a/cli/src/cli_util.rs b/cli/src/cli_util.rs index 72af109d3..b53d7758b 100644 --- a/cli/src/cli_util.rs +++ b/cli/src/cli_util.rs @@ -1993,21 +1993,17 @@ pub fn print_trackable_remote_branches(ui: &Ui, view: &View) -> io::Result<()> { return Ok(()); } - if let Some(mut writer) = ui.hint_default() { + if let Some(mut formatter) = ui.status_formatter() { writeln!( - writer, + formatter.labeled("hint").with_heading("Hint: "), "The following remote branches aren't associated with the existing local branches:" )?; - } - if let Some(mut formatter) = ui.status_formatter() { for full_name in &remote_branch_names { write!(formatter, " ")?; writeln!(formatter.labeled("branch"), "{full_name}")?; } - } - if let Some(mut writer) = ui.hint_default() { writeln!( - writer, + formatter.labeled("hint").with_heading("Hint: "), "Run `jj branch track {names}` to keep local branches updated on future pulls.", names = remote_branch_names.join(" "), )?;