From f262eaeb6cf04e638223aa55716812a5efaa4c53 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 28 Sep 2026 18:49:42 +0800 Subject: 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. --- scripts/vim-patch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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}" -- cgit