mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 03:04:22 +00:00
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.
This commit is contained in:
@@ -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 || {
|
||||
@@ -75,13 +77,13 @@ get_vim_patch() {
|
||||
|
||||
${vim_message}
|
||||
|
||||
https://code.google.com/p/vim/source/detail?r=${vim_commit}"
|
||||
${vim_commit_url}"
|
||||
neovim_pr="
|
||||
\`\`\`
|
||||
${vim_message}
|
||||
\`\`\`
|
||||
|
||||
https://code.google.com/p/vim/source/detail?r=${vim_commit}
|
||||
${vim_commit_url}
|
||||
|
||||
Original patch:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user