aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-05-15 10:45:10 -0400
committerGitHub <noreply@github.com>2020-05-15 10:45:10 -0400
commitc37d9fa3da3cea303915f29e75665f50c4c13b41 (patch)
treee0d4b63facff4bc271a85782a17ca3d17bba5f59 /scripts/vim-patch.sh
parente2a33a6622193df383870903cd39a3080c890d4d (diff)
parent1dc5e5ae9b3c5aa057e21df5fd9978b47ed3492e (diff)
downloadrneovim-c37d9fa3da3cea303915f29e75665f50c4c13b41.tar.gz
rneovim-c37d9fa3da3cea303915f29e75665f50c4c13b41.tar.bz2
rneovim-c37d9fa3da3cea303915f29e75665f50c4c13b41.zip
Merge pull request #11764 from blueyed/vim-patch-usage
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index dc62c9e744..a8b622d5c4 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -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() {
}
# Prints a newline-delimited list of Vim commits, for use by scripts.
-# "$1": use extended format?
+# "$1": use extended format? (with subject)
# "$@" is passed to list_vim_commits, as extra arguments to git-log.
list_missing_vimpatches() {
local -a missing_vim_patches=()
@@ -447,6 +448,8 @@ list_missing_vimpatches() {
# Sets / appends to missing_vim_patches (useful to avoid a subshell when
# used multiple times to cache tokens/vim_commit_tags).
+# "$1": use extended format? (with subject)
+# "$@": extra arguments to git-log.
_set_missing_vimpatches() {
local token vim_commit vim_tag patch_number
declare -a git_log_args
@@ -587,6 +590,7 @@ list_missing_previous_vimpatches_for_patch() {
set +u # Avoid "unbound variable" with bash < 4.4 below.
if [[ -z "${missing_list[*]}" ]]; then
msg_ok 'no missing previous Vim patches'
+ set -u
return 0
fi
set -u