mirror of
https://github.com/neovim/neovim.git
synced 2026-01-26 07:01:54 +10:00
Merge pull request #17324 from zeertzjq/vim-patch-sh-read
chore(vim-patch.sh): use piping instead of here string for `while read`
This commit is contained in:
@@ -576,13 +576,13 @@ show_vimpatches() {
|
||||
# Prints a human-formatted list of Vim commits, with instructional messages.
|
||||
# Passes "$@" onto list_missing_vimpatches (args for git-log).
|
||||
show_vimpatches() {
|
||||
get_vim_sources update
|
||||
get_vim_sources update
|
||||
printf "Vim patches missing from Neovim:\n"
|
||||
|
||||
local -A runtime_commits
|
||||
for commit in $(git -C "${VIM_SOURCE_DIR}" log --format="%H %D" -- runtime | sed 's/,\? tag: / /g'); do
|
||||
runtime_commits[$commit]=1
|
||||
done
|
||||
done
|
||||
|
||||
list_missing_vimpatches 1 "$@" | while read -r vim_commit; do
|
||||
if [[ "${runtime_commits[$vim_commit]-}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user