Improved readability of run-atpull log message

This commit is contained in:
Andrea Alberti 2025-12-30 12:40:55 +01:00
parent f8fb19458a
commit 00f6c50f43

View file

@ -3264,10 +3264,11 @@ print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
fi
if [[ -n ${(v)ice[(I)(mv|cp|atpull|ps-on-update|cargo)]} || $+ice[sbin]$+ice[make]$+ice[extract]$+ice[configure] -ne 0 ]] {
if (( !OPTS[opt_-q,--quiet] && ZINIT[annex-multi-flag:pull-active] == 1 )) {
+zi-log -n "{pre}[update]{msg3} Continuing with the update because "
(( ${+ice[run-atpull]} )) && \
+zi-log "{ice}run-atpull{apo}''{msg3} ice given.{rst}" || \
+zi-log "{opt}-u{msg3}/{opt}--urge{msg3} given.{rst}"
if (( ${+ice[run-atpull]} )); then
+zi-log "{pre}[update]{rst} No new commits found, but running post-update hooks as requested by the {ice}run-atpull{apo}{rst} ice."
else
+zi-log "{pre}[update]{rst} No new commits found, but running post-update hooks as requested by the {opt}-u{rst}/{opt}--urge{rst} option."
fi
}
}