diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-09-28 18:49:42 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-28 18:49:42 +0800 |
| commit | f262eaeb6cf04e638223aa55716812a5efaa4c53 (patch) | |
| tree | f9d48af9ea58ffd939613cf18131ce28cd2cf0bb /scripts | |
| parent | d7848ccb3dd7a711459e62c05d4fefd165f34947 (diff) | |
| download | rneovim-f262eaeb6cf04e638223aa55716812a5efaa4c53.tar.gz rneovim-f262eaeb6cf04e638223aa55716812a5efaa4c53.tar.bz2 rneovim-f262eaeb6cf04e638223aa55716812a5efaa4c53.zip | |
build(vim-patch.sh): make -l list in chronological order (#42123)
Combine the missing numbers and hashes (which are sorted separately),
and then use a single `git log` to list them in chronological order.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/vim-patch.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh index c0126c823b..225a669604 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -657,8 +657,9 @@ list_missing_vimpatches() { grep -v -e 'tag:' -e 'HEAD' | grep -v -f <(list_vimpatch_hashes | sed -E 's/(.*)/^\1/')) if test -n "${git_log_format}"; then - echo "${missing_numbers}" | _git --no-pager -C "${VIM_SOURCE_DIR}" log --no-walk --stdin --format="%d: ${git_log_format}" - echo "${missing_hashes}" | _git --no-pager -C "${VIM_SOURCE_DIR}" log --no-walk --stdin --format="%H: ${git_log_format}" + (echo "${missing_numbers}"; echo "${missing_hashes}") | + _git --no-pager -C "${VIM_SOURCE_DIR}" log --decorate-refs='refs/tags/*' --reverse --no-walk --stdin --format="%H%x00%d%x00: ${git_log_format}" | + awk -F '\0' '{ print $2 ? $2$3 : $1$3 }' else echo "${missing_numbers}" echo "${missing_hashes}" |