scripts/vim-patch.sh: include --shortstat with -m

This commit is contained in:
Daniel Hahler 2020-01-26 15:21:33 +01:00 committed by Jan Edmund Lazo
parent f319e4608e
commit 82b09bc9d2
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15
1 changed files with 3 additions and 1 deletions

View File

@ -598,7 +598,9 @@ list_missing_previous_vimpatches_for_patch() {
local -a missing_unique
while IFS= read -r line; do
missing_unique+=("$line")
local commit="${line%%:*}"
local stat="$(git -C "${VIM_SOURCE_DIR}" show --format= --shortstat "${commit}")"
missing_unique+=("$(printf '%s\n %s' "$line" "$stat")")
done < <(printf '%s\n' "${missing_list[@]}" | sort -u)
msg_err "$(printf '%d missing previous Vim patches:' ${#missing_unique[@]})"