aboutsummaryrefslogtreecommitdiff
path: root/scripts/vim-patch.sh
Commit message (Collapse)AuthorAge
* 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
|
* vim-patch.sh: Improvements for review functionality.Florian Walch2016-02-17
| | | | | | * Support pull requests with multiple commits. * Offer to clean up files after review. * Always use full commit hash in assign_commit_details().
* vim-patch.sh: List in chronological order. #4034Florian Walch2016-01-20
|
* vim-patch.sh: Fix listing of NA patches. #4034Florian Walch2016-01-17
|
* vim-patch.sh: fix regressionJustin M. Keyes2016-01-08
|
* vim-patch.sh: force LC_ALL=C for preprocessingJustin M. Keyes2015-12-17
| | | | | | | | | | Any patch may contain mixed encodings, so we must process them as byte arrays. E.g. with stock `sed` on OS X patch 8a94d873aa8c753a8522ea86a049bdf2abd0c507 causes this error: sed: RE error: illegal byte sequence To avoid that, set LC_ALL=C. Also remove redundant *.patch creation from review_pr().
* vim-patch.sh: fix order of non-tagged patchesJustin M. Keyes2015-12-17
| | | | Sort non-tagged patches in descending order, like tagged patches.
* Fix the examples for vim-patch.sh so they are valid commands. #3631Johan Klokkhammer Helsing2015-11-08
| | | | The examples were missing the required -p flag.
* vim-patch.sh: best-effort for older git.Justin M. Keyes2015-08-27
|
* vim-patch.sh: get all untagged patches #3250Justin Gassner2015-08-27
|
* vim-patch.sh: update for gitJustin M. Keyes2015-08-26
|
* vim-patch.sh: update for Vim's hg => git migrationJohn Whitley2015-08-26
|
* vim-patch.sh: Add --review option to compare PR and original diffs. #3083Florian Walch2015-08-03
| | | | Helped-by: Michael Reed <m.reed@mykolab.com>
* vim-patch.sh: Fix indentation, use GH URL for tagged versions. #2525Florian Walch2015-04-28
| | | | | | * 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.
* scripts/vim-patch.sh: Misc. improvements #2108Michael Reed2015-03-16
| | | | | | | | | | | | - Check for mercurial before using it - Make 'Merging patches...' wiki page easier to copy - Use `basename` instead of assuming the user is running vim-patch.sh via the repo root - Appease shellcheck by quoting path variables - Remove unneeded variable quoting inside [[ ]] blocks - Don't unconditionally 'exit 1' '-h' and '--help' are both recognized options, so current behavior is misleading.
* scripts/vim-patch: Allow equivalent shorthand argsMichael Reed2015-02-02
|
* vim-patch.sh: Add option to list missing Vim changesets.Florian Walch2015-01-14
|
* Improvements to vim-patch script.Florian Walch2014-12-25
|
* Ignore update errors in vim-patch script.Florian Walch2014-12-23
|
* Add helper script for porting vim patches.Florian Walch2014-11-21