mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
vim-patch: bump VIM_VERSION from 8.0 => 8.1 #20762
There are 6 remaining 8.0.x patches, tracked in: https://github.com/neovim/neovim/issues/5431
This commit is contained in:
committed by
dundargoc
parent
31a19c1894
commit
c5d688c54e
2
.github/workflows/vim-patches.yml
vendored
2
.github/workflows/vim-patches.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
||||
id: update-version
|
||||
run: |
|
||||
git checkout -b ${VERSION_BRANCH}
|
||||
nvim -i NONE -u NONE --headless +'luafile scripts/vimpatch.lua' +q
|
||||
nvim -V1 -es -i NONE +'luafile scripts/vimpatch.lua' +q
|
||||
printf '::set-output name=NEW_PATCHES::%s\n' $([ -z "$(git diff)" ]; echo $?)
|
||||
|
||||
- name: Automatic PR
|
||||
|
@ -338,6 +338,7 @@ local function validate_link(node, bufnr, fname)
|
||||
return helppage, tagname, ignored
|
||||
end
|
||||
|
||||
-- TODO: port the logic from scripts/check_urls.vim
|
||||
local function validate_url(text, fname)
|
||||
local ignored = false
|
||||
if vim.fs.basename(fname) == 'pi_netrw.txt' then
|
||||
|
@ -35,7 +35,7 @@ usage() {
|
||||
echo " -m {vim-revision} List previous (older) missing Vim patches."
|
||||
echo " -M List all merged patch-numbers (at current v:version)."
|
||||
echo " -p {vim-revision} Download and generate a Vim patch. vim-revision"
|
||||
echo " can be a Vim version (8.0.xxx) or a Git hash."
|
||||
echo " can be a Vim version (8.1.xxx) or a Git hash."
|
||||
echo " -P {vim-revision} Download, generate and apply a Vim patch."
|
||||
echo " -g {vim-revision} Download a Vim patch."
|
||||
echo " -s [pr args] Create a vim-patch pull request."
|
||||
@ -466,7 +466,7 @@ submit_pr() {
|
||||
patch_file="vim-${patch_file}.patch"
|
||||
if [[ ! -f "${NVIM_SOURCE_DIR}/${patch_file}" ]]; then
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
rm -- "${NVIM_SOURCE_DIR}/${patch_file}"
|
||||
msg_ok "Removed '${NVIM_SOURCE_DIR}/${patch_file}'."
|
||||
done
|
||||
@ -484,7 +484,7 @@ list_vimpatch_tokens() {
|
||||
| grep -oE 'vim-patch:[^ ,{:]{7,}' \
|
||||
| sort \
|
||||
| uniq \
|
||||
| sed -nE 's/^(vim-patch:([0-9]+\.[^ ]+|[0-9a-z]{7,7})).*/\1/p'
|
||||
| sed -nE 's/^(vim-patch:([0-9]+\.[^ ]+|[0-9a-z]{7,7})).*/\1/p'
|
||||
}
|
||||
|
||||
# Prints all patch-numbers (for the current v:version) for which there is
|
||||
@ -581,7 +581,7 @@ _set_missing_vimpatches() {
|
||||
continue
|
||||
fi
|
||||
|
||||
# Get commit hash, and optional info from line. This is used in
|
||||
# Get commit hash, and optional info from line. This is used in
|
||||
# extended mode, and when using e.g. '--format' manually.
|
||||
vim_commit=${line%% *}
|
||||
if [[ "$vim_commit" == "$line" ]]; then
|
||||
@ -624,7 +624,7 @@ show_vimpatches() {
|
||||
if [[ "${runtime_commits[$vim_commit]-}" ]]; then
|
||||
printf ' • %s (+runtime)\n' "${vim_commit}"
|
||||
else
|
||||
printf ' • %s\n' "${vim_commit}"
|
||||
printf ' • %s\n' "${vim_commit}"
|
||||
fi
|
||||
done
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- Updates version.c list of applied Vim patches.
|
||||
--
|
||||
-- Usage:
|
||||
-- VIM_SOURCE_DIR=~/neovim/.vim-src/ nvim -i NONE -u NONE --headless +'luafile ./scripts/vimpatch.lua' +q
|
||||
-- VIM_SOURCE_DIR=~/neovim/.vim-src/ nvim -V1 -es -i NONE +'luafile ./scripts/vimpatch.lua' +q
|
||||
|
||||
local nvim = vim.api
|
||||
|
||||
@ -22,12 +22,13 @@ end
|
||||
-- Generates the lines to be inserted into the src/version.c
|
||||
-- `included_patches[]` definition.
|
||||
local function gen_version_c_lines()
|
||||
-- Set of merged Vim 8.0.zzzz patch numbers.
|
||||
-- Set of merged Vim 8.1.zzzz patch numbers.
|
||||
local merged_patch_numbers = {}
|
||||
local highest = 0
|
||||
for _, n in ipairs(vimpatch_sh_list_numbers()) do
|
||||
n = tonumber(n)
|
||||
if n then
|
||||
merged_patch_numbers[tonumber(n)] = true
|
||||
merged_patch_numbers[n] = true
|
||||
highest = math.max(highest, n)
|
||||
end
|
||||
end
|
||||
|
1132
src/nvim/version.c
1132
src/nvim/version.c
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@ extern char *longVersion;
|
||||
|
||||
// Values that change for a new release
|
||||
#define VIM_VERSION_MAJOR 8
|
||||
#define VIM_VERSION_MINOR 0
|
||||
#define VIM_VERSION_MINOR 1
|
||||
|
||||
// Values based on the above
|
||||
#define VIM_VERSION_MAJOR_STR STR(VIM_VERSION_MAJOR)
|
||||
|
Reference in New Issue
Block a user