mirror of
https://github.com/neovim/neovim.git
synced 2025-11-08 19:45:12 +00:00
Merge pull request #11764 from blueyed/vim-patch-usage
This commit is contained in:
@@ -29,6 +29,7 @@ usage() {
|
|||||||
echo " -h Show this message and exit."
|
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."
|
||||||
echo " -L [git-log opts] List missing Vim patches (for scripts)."
|
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 " -M List all merged patch-numbers (at current v:version)."
|
||||||
echo " -p {vim-revision} Download and generate a Vim patch. vim-revision"
|
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."
|
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).
|
# Exit in case of errors from the above eval (empty vim_commit_tags).
|
||||||
if ! (( "${#vim_commit_tags[@]}" )); then
|
if ! (( "${#vim_commit_tags[@]}" )); then
|
||||||
msg_err "Could not get Vim commits/tags."
|
msg_err "Could not get Vim commits/tags."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -447,6 +448,8 @@ list_missing_vimpatches() {
|
|||||||
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
||||||
for line in "${missing_vim_patches[@]}"; do
|
for line in "${missing_vim_patches[@]}"; do
|
||||||
printf '%s\n' "$line"
|
printf '%s\n' "$line"
|
||||||
|
done
|
||||||
|
set -u
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sets / appends to missing_vim_patches (useful to avoid a subshell when
|
# Sets / appends to missing_vim_patches (useful to avoid a subshell when
|
||||||
@@ -587,6 +590,7 @@ list_missing_previous_vimpatches_for_patch() {
|
|||||||
printf -- "-\n"
|
printf -- "-\n"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
set -u
|
||||||
done
|
done
|
||||||
|
|
||||||
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
set +u # Avoid "unbound variable" with bash < 4.4 below.
|
||||||
|
|||||||
Reference in New Issue
Block a user