aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
Commit message (Collapse)AuthorAge
...
* 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.
* Run shellcheck (shell scripting linter) on shell scripts.Michael Ennen2016-05-11
| | | | | | | | | | | | | | | | | There are a total of 5 shell scripts in the Neovim source tree. All but runtime\macros\less.sh had warnings/errors when run through Shellcheck (http://www.shellcheck.net/). This commit fixes all warnings/errors and also changes the shebang to "#!/bin/sh" when possible (this was not possible for vim-patch.sh because it uses many bashisms). The shellcheck errors that were fixed are: SC2068: Double quote array expansions to avoid re-splitting elements. SC2086: Double quote to prevent globbing and word splitting. SC2124: Assigning an array to a string! Assign as array, or use * instead of @ to concatenate SC2155: Declare and assign separately to avoid masking return values.
* vim-patch.sh: fix/improve pattern with find_git_remoteDaniel Hahler2016-04-24
|
* vim-patch.sh: Query git for name of neovim remoteJames McCoy2016-04-23
| | | | | Rather than assume the user named their neovim/neovim remote "upstream", parse the information from "git remote -v".
* vim-patch.sh: Fetch the whole vim repository and fix a regexppips.linux2016-04-08
| | | | | | | Make get_vim_sources fetch the whole repository (it's not THAT big) so we can pick up all the patches. The regexp didn't pick up the NA patches if there was a comma after NA, so I extended it (I allowed arbitray things after NA, so maybe someone can write a comment or so, should not lead to confusion).
* vim-patch.sh: Replace #<number> with vim/vim#<number> in commit messages.Florian Walch2016-02-17
|
* vim-patch.sh: Support multi-patch pull requests.Florian Walch2016-02-17
| | | | | | | | | | | | | | * Calling "vim-patch.sh -p" on a checked-out branch already created with "-p" will re-use the branch and append commits. * Fetch upstream/master before checking out branch on first call of "-p". * Reverted creation of commit in submit step ("-s") to previous behavior: Create an empty commit with correct commit message when "-p" is called. * Submitting a pull request with "-s" will create a correct pull request message even if multiple patches have been ported in one single branch with "-p".
* vim-patch.sh: Add -s (submit pull request) option.Florian Walch2016-02-17
| | | | | | When calling "vim-patch.sh -s" on a checked-out branch created with "vim-patch.sh -p", create commit from staged changes, push to origin, create pull request (using hub), and clean up patch files.
* vim-patch.sh: Use .patch files only.Florian Walch2016-02-17
|