Merge pull request #7026 from lonerover/vim_patch

vim-patch.sh: remove prefix "0", only show missing patches
This commit is contained in:
James McCoy
2017-07-15 08:43:59 -04:00
committed by GitHub

View File

@@ -320,6 +320,7 @@ list_vim_patches() {
for vim_commit in ${vim_commits}; do
local is_missing
local vim_tag
# This fails for untagged commits (e.g., runtime file updates) so mask the return status
vim_tag="$(cd "${VIM_SOURCE_DIR}" && git describe --tags --exact-match "${vim_commit}" 2>/dev/null)" || true
if [[ -n "${vim_tag}" ]]; then
local patch_number="${vim_tag:5}" # Remove prefix like "v7.4."