Merge pull request #11764 from blueyed/vim-patch-usage

This commit is contained in:
James McCoy
2020-05-15 10:45:10 -04:00
committed by GitHub

View File

@@ -29,6 +29,7 @@ usage() {
echo " -h Show this message and exit."
echo " -l [git-log opts] List missing Vim patches."
echo " -L [git-log opts] List missing Vim patches (for scripts)."
echo " -m {vim-revision} List previous (older) missing Vim patches."
echo " -M List all merged patch-numbers (at current v:version)."
echo " -p {vim-revision} Download and generate a Vim patch. vim-revision"
echo " can be a Vim version (8.0.xxx) or a Git hash."
@@ -433,7 +434,7 @@ _set_tokens_and_tags() {
)"
# Exit in case of errors from the above eval (empty vim_commit_tags).
if ! (( "${#vim_commit_tags[@]}" )); then
msg_err "Could not get Vim commits/tags."
msg_err "Could not get Vim commits/tags."
exit 1
fi
}
@@ -447,6 +448,8 @@ list_missing_vimpatches() {
set +u # Avoid "unbound variable" with bash < 4.4 below.
for line in "${missing_vim_patches[@]}"; do
printf '%s\n' "$line"
done
set -u
}
# Sets / appends to missing_vim_patches (useful to avoid a subshell when
@@ -587,6 +590,7 @@ list_missing_previous_vimpatches_for_patch() {
printf -- "-\n"
fi
fi
set -u
done
set +u # Avoid "unbound variable" with bash < 4.4 below.