diff options
author | James McCoy <jamessan@jamessan.com> | 2016-05-18 20:37:31 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-05-19 06:40:51 -0400 |
commit | 8759a77dc2327eb23701ee3902b4cf69c8b70823 (patch) | |
tree | 7a6116bd8982bb7433a0b75d79b28f020e430ac1 /scripts/vim-patch.sh | |
parent | 957c91d5d041a8f6d5a9cb5b5a771b1c08d872aa (diff) | |
download | rneovim-8759a77dc2327eb23701ee3902b4cf69c8b70823.tar.gz rneovim-8759a77dc2327eb23701ee3902b4cf69c8b70823.tar.bz2 rneovim-8759a77dc2327eb23701ee3902b4cf69c8b70823.zip |
vim-patch.sh: Show if a patch includes runtime files
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-x | scripts/vim-patch.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index 8f9c3c36b2..7a0001769a 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -290,6 +290,9 @@ list_vim_patches() { is_missing="$(sed -n '/static int included_patches/,/}/p' "${NEOVIM_SOURCE_DIR}/src/nvim/version.c" | grep -x -e "[[:space:]]*//[[:space:]]${patch_number} NA.*" -e "[[:space:]]*${patch_number}," >/dev/null && echo "false" || echo "true")" vim_commit="${vim_tag#v}" + if (cd "${VIM_SOURCE_DIR}" && git show --name-only "v${vim_commit}" 2>/dev/null) | grep -q ^runtime; then + vim_commit="${vim_commit} (+runtime)" + fi else # Untagged Vim patch (e.g. runtime updates), check the Neovim git log: is_missing="$(cd "${NEOVIM_SOURCE_DIR}" && |