vim-patch.sh: only show missing patches

This commit is contained in:
lonerover
2017-07-15 20:34:24 +08:00
parent da99ded25b
commit e3a2b7220f

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."