diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-09-30 13:38:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-30 13:38:57 +0800 |
| commit | 237f04ee460198bea8dbc22f10ed67c0901f87e7 (patch) | |
| tree | 0204642371e1c865ca9bc3dcf3eea35bb95c5be8 /scripts/vim-patch.sh | |
| parent | d5e7c7e55ce090bb186edac909262a62920b3fa1 (diff) | |
| download | rneovim-237f04ee460198bea8dbc22f10ed67c0901f87e7.tar.gz rneovim-237f04ee460198bea8dbc22f10ed67c0901f87e7.tar.bz2 rneovim-237f04ee460198bea8dbc22f10ed67c0901f87e7.zip | |
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.
Diffstat (limited to 'scripts/vim-patch.sh')
| -rwxr-xr-x | scripts/vim-patch.sh | 7 |
1 files changed, 3 insertions, 4 deletions
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}") | |