diff options
author | Maxime Brunet <max@brnt.mx> | 2022-10-23 04:03:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-23 04:03:25 -0700 |
commit | 144d7b37accbb9f846f955c3b02c785894863bba (patch) | |
tree | eda1925a0ceb33c5bcbdc4f15cb348205056c84a /scripts/vim-patch.sh | |
parent | 3f80df368e0eec05f80ebb194e128b6da2db7418 (diff) | |
download | rneovim-144d7b37accbb9f846f955c3b02c785894863bba.tar.gz rneovim-144d7b37accbb9f846f955c3b02c785894863bba.tar.bz2 rneovim-144d7b37accbb9f846f955c3b02c785894863bba.zip |
feat(vim-patch): mention original author #20772
Diffstat (limited to 'scripts/vim-patch.sh')
-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 be7c6fd8a6..07c9848807 100755 --- a/scripts/vim-patch.sh +++ b/scripts/vim-patch.sh @@ -120,9 +120,9 @@ get_vim_sources() { commit_message() { if [[ -n "$vim_tag" ]]; then - printf '%s\n%s' "${vim_message}" "${vim_commit_url}" + printf '%s\n\n%s\n\n%s' "${vim_message}" "${vim_commit_url}" "${vim_coauthor}" else - printf 'vim-patch:%s\n\n%s\n%s' "$vim_version" "$vim_message" "$vim_commit_url" + printf 'vim-patch:%s\n\n%s\n\n%s\n\n%s' "$vim_version" "$vim_message" "$vim_commit_url" "$vim_coauthor" fi } @@ -175,6 +175,7 @@ assign_commit_details() { vim_commit_url="https://github.com/vim/vim/commit/${vim_commit}" vim_message="$(git -C "${VIM_SOURCE_DIR}" log -1 --pretty='format:%B' "${vim_commit}" \ | sed -e 's/\(#[0-9]\{1,\}\)/vim\/vim\1/g')" + vim_coauthor="$(git -C "${VIM_SOURCE_DIR}" log -1 --pretty='format:Co-authored-by: %an <%ae>' "${vim_commit}")" if [[ ${munge_commit_line} == "true" ]]; then # Remove first line of commit message. vim_message="$(echo "${vim_message}" | sed -e '1s/^patch /vim-patch:/')" |