aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-04-28 12:34:43 +0300
committerFlorian Walch <florian@fwalch.com>2015-04-28 17:29:20 +0300
commita903407471d8b480737d43db1d271c6650580f1c (patch)
treeed2112215d81bc481f66630a9641f978c05b20da /scripts/vim-patch.sh
parent7315b9d8727176a96d273e6d697e15bff83f6fba (diff)
downloadrneovim-a903407471d8b480737d43db1d271c6650580f1c.tar.gz
rneovim-a903407471d8b480737d43db1d271c6650580f1c.tar.bz2
rneovim-a903407471d8b480737d43db1d271c6650580f1c.zip
vim-patch.sh: Fix indentation, use GH URL for tagged versions. #2525
* Link to the commit details on GitHub for a tagged version. * Non-tagged patches (runtime updates) are still linked to Google Code because they are identified by a Mercurial commit hash.
Diffstat (limited to 'scripts/vim-patch.sh')
-rwxr-xr-xscripts/vim-patch.sh24
1 files changed, 13 insertions, 11 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 4935ca5994..f17b23101d 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -47,11 +47,13 @@ get_vim_patch() {
vim_version="${1}"
vim_commit="v${1//./-}"
strip_commit_line=true
+ vim_commit_url="https://github.com/vim/vim/commit/${vim_commit}"
else
# Interpret parameter as commit hash.
vim_version="${1:0:7}"
vim_commit="${1}"
strip_commit_line=false
+ vim_commit_url="https://code.google.com/p/vim/source/detail?r=${vim_commit}"
fi
hg log --rev "${vim_commit}" >/dev/null 2>&1 || {
@@ -71,23 +73,23 @@ get_vim_patch() {
vim_diff="$(hg diff --show-function --git --change "${vim_commit}" \
| sed -e 's/\( [ab]\/src\)/\1\/nvim/g')" # Change directory to src/nvim.
neovim_message="
- vim-patch:${vim_version}
+vim-patch:${vim_version}
- ${vim_message}
+${vim_message}
- https://code.google.com/p/vim/source/detail?r=${vim_commit}"
+${vim_commit_url}"
neovim_pr="
- \`\`\`
- ${vim_message}
- \`\`\`
+\`\`\`
+${vim_message}
+\`\`\`
- https://code.google.com/p/vim/source/detail?r=${vim_commit}
+${vim_commit_url}
- Original patch:
+Original patch:
- \`\`\`diff
- ${vim_diff}
- \`\`\`"
+\`\`\`diff
+${vim_diff}
+\`\`\`"
neovim_branch="vim-${vim_version}"
echo