diff options
author | kevinhwang91 <kevin.hwang@live.com> | 2021-05-20 21:15:31 +0800 |
---|---|---|
committer | kevinhwang91 <kevin.hwang@live.com> | 2021-05-20 21:15:31 +0800 |
commit | d29148ffd812058cf7281607d1b6a9dd937d5d6c (patch) | |
tree | 8dc16d1b0949b0093a3fd71991ac3ed438fca4d6 /scripts/vim-patch.sh | |
parent | 2dc0f812710b19f8befcfa64ef9335cadc510296 (diff) | |
parent | 5d9c5601275abfa17396b3a80c7b958c48080807 (diff) | |
download | rneovim-d29148ffd812058cf7281607d1b6a9dd937d5d6c.tar.gz rneovim-d29148ffd812058cf7281607d1b6a9dd937d5d6c.tar.bz2 rneovim-d29148ffd812058cf7281607d1b6a9dd937d5d6c.zip |
Merge remote-tracking branch 'origin/master' into qftf
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index f583b2fdea..86552c0c8d 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -578,7 +578,7 @@ list_missing_previous_vimpatches_for_patch() { local -a fnames while IFS= read -r line ; do fnames+=("$line") - done < <(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id --name-only -r "${vim_commit}") + done < <(git -C "${VIM_SOURCE_DIR}" diff-tree --no-commit-id --name-only -r "${vim_commit}" -- . ':!src/version.c') local i=0 local n=${#fnames[@]} printf '=== getting missing patches for %d files ===\n' "$n" @@ -593,18 +593,20 @@ list_missing_previous_vimpatches_for_patch() { _set_missing_vimpatches 1 -- "${fname}" set +u # Avoid "unbound variable" with bash < 4.4 below. - local missing_vim_commit_info="${missing_vim_patches[0]}" - if [[ -z "${missing_vim_commit_info}" ]]; then - printf -- "-\n" - else - local missing_vim_commit="${missing_vim_commit_info%%:*}" - if [[ -z "${vim_tag}" ]] || [[ "${missing_vim_commit}" < "${vim_tag}" ]]; then - printf -- "%s\n" "$missing_vim_commit_info" - missing_list+=("$missing_vim_commit_info") + for missing_vim_commit_info in "${missing_vim_patches[@]}"; do + if [[ -z "${missing_vim_commit_info}" ]]; then + printf -- "-\r" else - printf -- "-\n" + printf -- "-\r" + local missing_vim_commit="${missing_vim_commit_info%%:*}" + if [[ -z "${vim_tag}" ]] || [[ "${missing_vim_commit}" < "${vim_tag}" ]]; then + printf -- "%s\n" "$missing_vim_commit_info" + missing_list+=("$missing_vim_commit_info") + else + printf -- "-\r" + fi fi - fi + done set -u done |