From 237f04ee460198bea8dbc22f10ed67c0901f87e7 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 30 Sep 2026 13:38:57 +0800 Subject: build(vim-patch.sh): fix missing HEAD commit (#42157) Instead of filtering out HEAD, use --decorate-refs='/ref/tags/*' so that HEAD is not included in the ref name. --- scripts/vim-patch.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts/vim-patch.sh') diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index cb91a4e4ab..5aff4de08f 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -649,12 +649,11 @@ list_missing_vimpatches() { git_log_args+=("$i") done - missing_numbers=$(_git -C "${VIM_SOURCE_DIR}" log --reverse --since="${VIM_VERSION_0_DATE}" --no-walk --tags --format='%(decorate:prefix=,suffix=,tag=)' "${git_log_args[@]}" | - grep -v -e 'HEAD' | + missing_numbers=$(_git -C "${VIM_SOURCE_DIR}" log --decorate-refs='refs/tags/*' --reverse --since="${VIM_VERSION_0_DATE}" --no-walk --tags --format='%(decorate:prefix=,suffix=,tag=)' "${git_log_args[@]}" | grep -v -F -f <(list_vimpatch_numbers) | sed -E 's/,.*$//') - missing_hashes=$(_git -C "${VIM_SOURCE_DIR}" log --reverse --since="${VIM_VERSION_0_DATE}" --format='%H%D' "${git_log_args[@]}" | - grep -v -e 'tag:' -e 'HEAD' | + missing_hashes=$(_git -C "${VIM_SOURCE_DIR}" log --decorate-refs='refs/tags/*' --reverse --since="${VIM_VERSION_0_DATE}" --format='%H%D' "${git_log_args[@]}" | + grep -v -e 'tag:' | grep -v -f <(list_vimpatch_hashes | sed -E 's/(.*)/^\1/')) if test -n "${git_log_format}"; then (echo "${missing_numbers}"; echo "${missing_hashes}") | -- cgit