forked from mirrors/jj
cli: colorize inline "jj branch" command hints
This is a bit different from the ordinary ui hints, but I feel the colored output is easier to follow.
This commit is contained in:
parent
40d18bb2c9
commit
15c3014284
1 changed files with 2 additions and 2 deletions
|
@ -705,13 +705,13 @@ fn cmd_branch_list(
|
|||
.any(|&(remote, _)| remote != git::REMOTE_NAME_FOR_LOCAL_GIT_REPO);
|
||||
if found_non_git_remote {
|
||||
writeln!(
|
||||
formatter,
|
||||
formatter.labeled("hint"),
|
||||
" (this branch will be *deleted permanently* on the remote on the next `jj \
|
||||
git push`. Use `jj branch forget` to prevent this)"
|
||||
)?;
|
||||
} else {
|
||||
writeln!(
|
||||
formatter,
|
||||
formatter.labeled("hint"),
|
||||
" (this branch will be deleted from the underlying Git repo on the next `jj \
|
||||
git export`)"
|
||||
)?;
|
||||
|
|
Loading…
Reference in a new issue