aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
Commit message (Collapse)AuthorAge
...
* 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
|
* vim-patch: Use get_vim_patch to retrieve patch for reviewJames McCoy2017-02-06
| | | | | | | This ensures the downloaded Vim patch is preprocessed so unused material isn't presented to the reviewer. [ci skip]
* vim-patch: fix default answersMarco Hinz2016-12-22
|
* vim-patch: Allow skipping non-"vim-patch" commits during reviewJames McCoy2016-12-15
| | | | | | | It's not atypical to have extra, non-"vim-patch" commits in a PR merging a bigger or set of related patches from Vim. Rather than immediately aborting, display the patch header to the user and let them decide whether to continue reviewing.
* vim-patch: Add -g switch to download/preprocess patchJames McCoy2016-12-12
|
* l10n: Remove some non-UTF8 .po files. (#5622)Justin M. Keyes2016-11-17
| | | | | Some .po files do not have UTF8 versions, leave those alone for now. Also remove sjiscorr.c utility.
* vim-patch.sh: Remove "set -o pipefail"James McCoy2016-11-15
| | | | | | | | | grep 2.26 changed its behavior when redirecting its output to /dev/null such that it exits as soon as one match is found. This causes sed to get a SIGPIPE which, due to "set -o pipefail", falsely implies that the patch is not applied. Removing "set -o pipefail" preserves the good exit status from grep.
* doc; vim-patch.shJustin M. Keyes2016-10-24
| | | | | | Also include missing changes from: https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810 https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
* vim-patch: Group alternations in preprocess_patchJames McCoy2016-09-22
| | | | | | | | | | | | | | | | | Without the groupings, only the first alternation matches the diff marker. For example, local na_doc='todo\.txt\|version\d\.txt\|tags' ... +'g^diff --git a/runtime/doc/'${na_doc}'... becomes, after expansion, ... +'g^diff --git a/runtime/doc/todo\.txt\|version\d\.txt\|tags'... so the matches become "^diff --get a/runtime/doc/todo\.txt", "version\d\.txt", or "tags". Adding the grouping ensures the expected behavior of requiring "^diff --get a/runtime/doc/" before every filename.
* vim-patch.sh: Use printf instead of echoJustin M. Keyes2016-09-13
| | | | Also: neovim => nvim
* vim-patch.sh: preprocess_patch()Justin M. Keyes2016-09-13
| | | | | | | - Remove not-applicable Vim changes such as *.proto, todo.txt, ... Also: - support NVIM_SOURCE_DIR override
* scripts/vim-patch.sh: fix typo (#5221)Daniel Hahler2016-08-14
| | | [ci skip]
* scripts/vim-patch.sh: use privileged mode (set -p)Daniel Hahler2016-08-11
| | | | | | | | | Without this the "cd scripts/.." might change to another dir (since CDPATH is looked at before a local path), and then NEOVIM_SOURCE_DIR might end up being "/somewhere/else\n/somewhere/else" (since the "cd" prints the dir already in that case). Closes https://github.com/neovim/neovim/pull/5213.
* vim-patch.sh: ignore coloring and pagers (#5030)Simon Weil2016-07-10
|
* vimpatch.sh: bug fix in find_git_remote regex (#4863)Shota2016-06-01
| | | vimpatch.sh: fix awk expr
* vim-patch.sh: Only print the first neovim/neovim remote nameJames McCoy2016-05-28
| | | | | | | If a user has multiple remotes set for neovim/neovim, then find_get_remote was returning 'remote1\nremote2\n', which breaks anything trying to use it. Since we're just using this remote to fetch from, any one will do.
* vim-patch.sh: Show if a patch includes runtime filesJames McCoy2016-05-19
|
* vim-patch.sh: Add support for sociomatic/git-hubJames McCoy2016-05-19
|
* vim-patch.sh: Rename check_executable to require_executableJames McCoy2016-05-19
| | | | | check_executable now just wraps the "exists && executable" check. This will be needed to allow fallbacks for commands.
* vim-patch.sh: Ignore “git describe” failures in list_vim_patchesJames McCoy2016-05-17
| | | | | | | | | It's acceptable for “git describe --tags --exact-match …” to fail, since all runtime updates commits are untagged. All that matters is that we get a tag when one exists. Therefore, ignore the failure status of the git describe call, relying on the captured output instead.