1
0
Fork 0
mirror of synced 2024-11-22 23:35:35 -05:00

Hide git-related information in list for mkdir tool

as that information has no effect for that tool.
This commit is contained in:
Eric Nielsen 2024-08-26 19:46:25 -05:00
parent 880ed131a1
commit ded640ed80
No known key found for this signature in database
GPG key ID: 678AF5E338C87D99
2 changed files with 22 additions and 14 deletions

View file

@ -8,15 +8,19 @@ _zimfw_run_list() {
print
if (( _zprintlevel > 1 )); then
if [[ ${_zfrozens[${zname}]} -eq 0 && -n ${_zurls[${zname}]} ]]; then
print -nR " From: ${_zurls[${zname}]}, "
if [[ -z ${_zrevs[${zname}]} ]]; then
print -n 'default branch'
if [[ ${_ztools[${zname}]} == mkdir ]]; then
print ' From: mkdir'
else
print -nR "${_ztypes[${zname}]} ${_zrevs[${zname}]}"
print -nR " From: ${_zurls[${zname}]}, "
if [[ -z ${_zrevs[${zname}]} ]]; then
print -n 'default branch'
else
print -nR "${_ztypes[${zname}]} ${_zrevs[${zname}]}"
fi
print -nR ", using ${_ztools[${zname}]}"
if (( ! _zsubmodules[${zname}] )) print -n ', no git submodules'
print
fi
print -nR ", using ${_ztools[${zname}]}"
if (( ! _zsubmodules[${zname}] )) print -n ', no git submodules'
print
if [[ -n ${_zonpulls[${zname}]} ]] print -R " On-pull: ${_zonpulls[${zname}]}"
fi
# Match the current module dir prefix from _zroot_dirs

View file

@ -520,15 +520,19 @@ _zimfw_run_list() {
print
if (( _zprintlevel > 1 )); then
if [[ ${_zfrozens[${zname}]} -eq 0 && -n ${_zurls[${zname}]} ]]; then
print -nR " From: ${_zurls[${zname}]}, "
if [[ -z ${_zrevs[${zname}]} ]]; then
print -n 'default branch'
if [[ ${_ztools[${zname}]} == mkdir ]]; then
print ' From: mkdir'
else
print -nR "${_ztypes[${zname}]} ${_zrevs[${zname}]}"
print -nR " From: ${_zurls[${zname}]}, "
if [[ -z ${_zrevs[${zname}]} ]]; then
print -n 'default branch'
else
print -nR "${_ztypes[${zname}]} ${_zrevs[${zname}]}"
fi
print -nR ", using ${_ztools[${zname}]}"
if (( ! _zsubmodules[${zname}] )) print -n ', no git submodules'
print
fi
print -nR ", using ${_ztools[${zname}]}"
if (( ! _zsubmodules[${zname}] )) print -n ', no git submodules'
print
if [[ -n ${_zonpulls[${zname}]} ]] print -R " On-pull: ${_zonpulls[${zname}]}"
fi
# Match the current module dir prefix from _zroot_dirs