aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-12-16 10:03:40 -0500
committerGitHub <noreply@github.com>2016-12-16 10:03:40 -0500
commita26188b58d1d69725d2c804bd098b11a3b1162a0 (patch)
tree1ba6b59cb36495488b137903f9d0fb2828534391
parentc8c296557b7e7776617737c4080538eafa0d8a81 (diff)
parent412d87698fd80f8c2f9d7badfd1a308bb241eebf (diff)
downloadrneovim-a26188b58d1d69725d2c804bd098b11a3b1162a0.tar.gz
rneovim-a26188b58d1d69725d2c804bd098b11a3b1162a0.tar.bz2
rneovim-a26188b58d1d69725d2c804bd098b11a3b1162a0.zip
Merge pull request #5775 from jamessan/vim-patch-review
vim-patch: Allow skipping non-"vim-patch" commits during review
-rwxr-xr-xscripts/vim-patch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/vim-patch.sh b/scripts/vim-patch.sh
index 28aa53b3c9..b5d795424b 100755
--- a/scripts/vim-patch.sh
+++ b/scripts/vim-patch.sh
@@ -366,6 +366,14 @@ review_commit() {
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
+ fi
exit 1
fi