Skip to content

Commit 893146b

Browse files
authored
Refactor: Improve clarity and readability of run-atpull log message (#752)
1 parent f8fb194 commit 893146b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

zinit-autoload.zsh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3264,10 +3264,11 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
32643264
fi
32653265
if [[ -n ${(v)ice[(I)(mv|cp|atpull|ps-on-update|cargo)]} || $+ice[sbin]$+ice[make]$+ice[extract]$+ice[configure] -ne 0 ]] {
32663266
if (( !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 1 )) {
3267-
+zi-log -n "{pre}[update]{msg3} Continuing with the update because "
3268-
(( ${+ice[run-atpull]} )) && \
3269-
+zi-log "{ice}run-atpull{apo}''{msg3} ice given.{rst}" || \
3270-
+zi-log "{opt}-u{msg3}/{opt}--urge{msg3} given.{rst}"
3267+
if (( ${+ice[run-atpull]} )); then
3268+
+zi-log "{info}[{pre}update{info}]{rst} No new commits found, but running post-update hooks as requested by the {ice}run-atpull{apo}{rst} ice."
3269+
else
3270+
+zi-log "{info}[{pre}update{info}]{rst} No new commits found, but running post-update hooks as requested by the {opt}-u{rst}/{opt}--urge{rst} option."
3271+
fi
32713272
}
32723273
}
32733274

0 commit comments

Comments
 (0)