ok/jj
1
0
Fork 0
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:
Yuya Nishihara 2023-12-15 21:55:33 +09:00
parent 40d18bb2c9
commit 15c3014284

View file

@ -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`)"
)?;