Merge pull request #5775 from jamessan/vim-patch-review

vim-patch: Allow skipping non-"vim-patch" commits during review
This commit is contained in:
James McCoy
2016-12-16 10:03:40 -05:00
committed by GitHub

View File

@@ -366,6 +366,14 @@ review_commit() {
echo
if [[ -n "${vim_version}" ]]; then
echo "✔ Detected Vim patch '${vim_version}'."
else
echo "✘ Could not detect the Vim patch number."
echo " This script assumes that the PR contains only commits"
echo " with 'vim-patch:XXX' in their title."
echo
printf -- "$(head -n 4 <<< "${nvim_patch}")\n\n"
local reply
read -p "Continue reviewing (y/N)? " -n 1 -r reply
if [[ ! "${reply}" =~ ^[Nn]$ ]]; then
echo
return