aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
Commit message (Collapse)AuthorAge
...
| * runtime: move matchit.vim to /pack/dist/opt/Justin M. Keyes2019-08-01
| | | | | | | | | | | | Align matchit.vim with upstream Vim. We don't want to maintain a fork of matchit.vim; our small changes should be sent to https://github.com/chrisbra/matchit
* | vim-patch: handle tags, pass through git-log options (#10140)Daniel Hahler2019-07-30
|/ | | | | | | | | | | | | | | | * scripts/vim-patch.sh: fall back to "origin" for remote Without this, it would fail e.g. with a locally cloned repo of Neovim. * scripts/vim-patch.sh: assign_commit_details: handle tags [ci skip] - Handle "v" prefix from Vim tags. - Exit in case of error therein already. * -l/-L: pass through git-log options [ci skip] This allows for only listing missing patches for a given Vim file: > scripts/vim-patch.sh -L src/edit.c
* vim-patch.sh: git-for-each-ref: use strip [ci skip] #10169Daniel Hahler2019-06-09
| | | | | | | | - It is a synonym for lstrip, which works with older Git versions also (2.7.4, Ubuntu Xenial). - exit in case of errors from git-foreach-ref - msg_err: echo to stderr Ref: https://github.com/neovim/neovim/pull/10165#issuecomment-500164356
* vim-patch.sh: improve performance with -l [ci skip] #10165Daniel Hahler2019-06-09
| | | Down to < 1s now also (without get_vim_sources).
* vim-patch.sh: use --no-backup-if-mismatch [ci skip] #10156Daniel Hahler2019-06-08
|
* vim-patch.sh: improve patching [ci skip] #10154Daniel Hahler2019-06-08
| | | | | (fuzz, unified, exit) Fixes https://github.com/neovim/neovim/issues/10143
* vim-patch.sh: improve performance #10137Daniel Hahler2019-06-08
| | | | | | | | | | | | | | | | | | | `vim-patch.sh -L`: down to ~0.5s from ~85s. `vim-patch.sh -l`: down to ~6s from ~90s. % diff old new: 193c193 < • v8.0.1366 --- > • v8.0.1367 354d353 < • v8.0.1738 This is due to duplicate tags for Vim commits (https://github.com/vim/vim/issues/4510): - vim/vim@1ad022a9b: tagged as v8.0.1367, v8.0.1366 - vim/vim@5d69da462: tagged as v8.0.1739, v8.0.1738
* vim-patch.sh: fix shellcheck issues [ci skip] #10138Daniel Hahler2019-06-08
|
* vim-patch.sh: perf, readability #9044Daniel Hahler2019-04-12
| | | | closes #9044
* vim-patch.sh: mention URL for `hub` tool #9659Billy Su2019-03-02
| | | | closes #9659
* vim-patch: add matchit docJan Edmund Lazo2018-11-12
| | | | matchit doc is named 'pi_matchit.txt'.
* vim-patch: rename path to check_colors.vimJan Edmund Lazo2018-11-12
|
* vim-patch: move test_urls.vim out of runtime/Jan Edmund Lazo2018-11-12
| | | | Rename it to check_urls.vim, similar to check-includes.py.
* doc: merge sponsor.txt into intro.txtJustin M. Keyes2018-11-05
| | | | | | Also mention how to donate to Nvim. closes #8603
* vim-patch.sh: Skip Vim screen-dump filesJustin M. Keyes2018-10-05
|
* vim-patch.sh: use --ff with git-pullDaniel Hahler2018-09-30
| | | | | | | | I have `merge.ff = no` in my Git config to not use fast-forward merges by default, but when updating the Vim sources it should not cause a merge commit. [ci skip]
* vim-patch.sh: Also check for .git/ directoryJustin M. Keyes2018-08-21
| | | | | | | | | | In the case of nested repos, such as when "neovim/" repo contains "neovim/.vim-src/" repo, git rev-parse --show-toplevel returns the fullpath to the "neovim/" repo, which failed the condition. ref #8875 ref c05d7153d315
* vim-patch.sh: Use git-rev-parse to check repo (#8875)James McCoy2018-08-20
| | | | | | Explicitly checking for the .git/ directory doesn't work in various situations (e.g., git-worktree). [ci skip]
* vim-patch.sh: Fix replacement which converts #1234 to vim/vim#1234James McCoy2018-08-09
| | | | | | | Noticed in cb7bdf5f, where the script incorrectly converted `#ifdef` to `vim/vim#ifdef`. [skip ci]
* vim-patch.sh: Pass directory name to find (#8830)Jason Felice2018-08-09
| | | BSD/Mac find requires directory names before arguments.
* vim-patch.sh: Unwrap commit messages when reviewing PRsJames McCoy2018-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Longer summary lines for commits may be wrapped when downloading the commit from GitHub. Unwrapping the lines ensures they can be compared with the raw Vim commits. The difference before and after this patch using: ./scripts/vim-patch.sh -r 8684 Before: ✘ Wrong commit message. Expected: vim-patch:8.0.1464: completing directory after :find does not add slash Problem: Completing directory after :find does not add slash. Solution: Adjust the flags for globpath(). (Genki Sky) vim/vim@8a37b03 Actual: vim-patch:8.0.1464: completing directory after :find does not add slash Problem: Completing directory after :find does not add slash. Solution: Adjust the flags for globpath(). (Genki Sky) After: ✔ Found expected commit message. [ci skip]
* vim-patch.sh: review_commit: Fix regex for vim versionJames McCoy2018-07-09
| | | | | 067bb1e9f changed the commit format to include a brief description in the summary line of the commit.
* vim-patch.sh: Use single quotes to avoid doubling backslashesJames McCoy2018-07-09
|
* vim-patch: Replace shell variables in printf with formatted argsJames McCoy2018-06-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ensures that special characters in the variables are not interpreted as escapes/format characters in the printf string, as was seen with upstream patch 8.0.0615. $ ./scripts/vim-patch.sh -p 8.0.0615 Updating Vim sources: /$HOME/src/neovim/.vim-src ✔ Updated Vim sources. ✔ Found Vim revision 'bf15b8d78b22661db8b19d662b62bb9a061cdd37'. Creating patch... Pre-processing patch... ✔ Saved patch to '/$HOME/src/neovim/vim-8.0.0615.patch'. Fetching 'origin/master'. ✔ From https://github.com/neovim/neovim * branch master -> FETCH_HEAD Creating new branch 'vim-8.0.0615' based on 'origin/master'. ✔ Switched to a new branch 'vim-8.0.0615' Branch 'vim-8.0.0615' set up to track remote branch 'master' from 'origin'. Creating empty commit with correct commit message. ./scripts/vim-patch.sh: line 40: printf: `w': invalid format character ✔ [vim-8.0.0615 db7fbb016] vim-patch:8.0.0615: using ./scripts/vim-patch.sh: line 44: printf: `w': invalid format character ✘ [vim-8.0.0615 db7fbb016] vim-patch:8.0.0615: using [ci-skip]
* vim-patch.sh: remove blank line before URLJustin M. Keyes2018-03-24
| | | | This "stacks" better in squashed PRs, etc.
* vim-patch.sh: more colorful #8115Giuseppe2018-03-09
|
* vim-patch.sh: delete *.orig filesJustin M. Keyes2018-02-11
|
* vim-patch.sh: remove --posix from patch invocationJustin M. Keyes2018-02-11
| | | | | This was supposed to avoid creating *.orig. It doesn't do that, and worse, it also seems to prevent new files from being created.
* scripts/vim-patch.sh: continue when patching with -P fails (#7790)Daniel Hahler2017-12-30
| | | | The `set -e` caused the script to stop in case `patch` fails, but it is better to continue giving instructions.
* vimpatch.lua: automate version.cJustin M. Keyes2017-12-27
| | | | | | Invoke it like this: VIM_SOURCE_DIR=~/neovim/.vim-src/ nvim -i NONE -u NONE --headless +'luafile ./scripts/vimpatch.lua' +q
* vim-patch.sh: extract list_vimpatch_tokens()Justin M. Keyes2017-12-26
| | | | Use streams instead of for-loop (20x speedup for list_vimpatch_tokens).
* vim-patch.sh: introduce `-V`Justin M. Keyes2017-12-26
|
* vim-patch.sh: Include upstream summary in commit messageJames McCoy2017-12-17
| | | | [ci skip]
* vim-patch.sh: remove version.c in generated patchJustin M. Keyes2017-12-11
| | | | | Vim patch tracking is now driven completely by `vim-patch:xxx` tokens in the VCS logs. version.c will be auto-generated, if it is used at all.
* vim-patch.sh: introduce `-L`Justin M. Keyes2017-12-11
|
* vim-patch.sh: always use git log, not version.cJustin M. Keyes2017-12-10
|
* vim-patch.sh: avoid creating *.orig filesJustin M. Keyes2017-11-07
|
* vim-patch.sh: remove vimrc_example.vimJustin M. Keyes2017-11-07
| | | | | | | | vimrc_example.vim is not relevant to Nvim. Anything worth having in there should be made an actual default. .gitignore: - remove *.orig ... super annoying
* vim-patch.sh: new option `-P`Justin M. Keyes2017-11-07
|
* vim-patch.sh: Exclude testdir/ files from src/ file pruningJames McCoy2017-09-27
| | | | | | Without the testdir/ exclusion, all directories under src/ were affected by this cleanup. However, testdir/ has its own pruning that happens later.
* doc: "terminal" always means "embedded terminal emulator"Justin M. Keyes2017-08-03
| | | | | | | | | | | - Prefer "TUI" where possible to refer to the host terminal. - Remove obsolete tags and ancient TTY exposition. - Establish "terminal" to consistently mean "terminal emulator" in all Nvim documentation. This removes the need for verbose qualifiers in tags and prose. References #6280 References #6803
* vim-patch.sh: only show missing patcheslonerover2017-07-15
|
* Bump Vim version to 8.0 and applied patchesJames McCoy2017-07-14
|
* scripts/vim-patch.sh: do not git-reset on push failure (#6878)Daniel Hahler2017-06-11
| | | | | | This was added from the beginning to submit_pr in 775a16b0b, but I cannot see why that is useful - in contrast, it will mess with the local branch in case "origin" cannot be pushed to (i.e. when it points to neovim/neovim itself).
* doc: Removed t_XX options/keycodes. (#6616)Justin M. Keyes2017-04-29
| | | | | Closes #4482 TODO: revisit find_key_option_len()
* scripts/vim-patch.sh: word-boundaries in preprocess regexJustin M. Keyes2017-04-19
|
* vim-patch: Update regex for included_patches array (#6449)James McCoy2017-04-06
| | | | | 28dafe3ff const-ified the array without updating the regex. [ci skip]
* scripts/vim-patch.sh: Remove "Last change ..." lines.Justin M. Keyes2017-03-21
| | | | | | Also: - fix ignoring doc/tags file - use 12 chars of hash instead of 7
* vim-patch.sh: Bump base Vim version to 7.4.1980James McCoy2017-02-27
| | | | | | | All patches up through 7.4.1974 have been merged and 7.4.1975-1979 are pending in a PR. [ci skip]
* vim-patch.sh: don't ignore runtime/doc/tagsrch.txtlonerover2017-02-14
|