mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-11 15:07:06 +00:00
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);
|
.any(|&(remote, _)| remote != git::REMOTE_NAME_FOR_LOCAL_GIT_REPO);
|
||||||
if found_non_git_remote {
|
if found_non_git_remote {
|
||||||
writeln!(
|
writeln!(
|
||||||
formatter,
|
formatter.labeled("hint"),
|
||||||
" (this branch will be *deleted permanently* on the remote on the next `jj \
|
" (this branch will be *deleted permanently* on the remote on the next `jj \
|
||||||
git push`. Use `jj branch forget` to prevent this)"
|
git push`. Use `jj branch forget` to prevent this)"
|
||||||
)?;
|
)?;
|
||||||
} else {
|
} else {
|
||||||
writeln!(
|
writeln!(
|
||||||
formatter,
|
formatter.labeled("hint"),
|
||||||
" (this branch will be deleted from the underlying Git repo on the next `jj \
|
" (this branch will be deleted from the underlying Git repo on the next `jj \
|
||||||
git export`)"
|
git export`)"
|
||||||
)?;
|
)?;
|
||||||
|
|
Loading…
Reference in a new issue