mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
release.sh: fix exclusion pattern [ci skip]
grep support of "\s" pattern is unreliable.
This commit is contained in:
@@ -22,7 +22,7 @@ is_merge_commit() {
|
|||||||
for commit in $(git log --format='%H' --first-parent "$__SINCE"..HEAD); do
|
for commit in $(git log --format='%H' --first-parent "$__SINCE"..HEAD); do
|
||||||
if is_merge_commit ${commit} ; then
|
if is_merge_commit ${commit} ; then
|
||||||
if [ -z "$__INVMATCH" ] || ! git log --oneline ${commit}^1..${commit}^2 \
|
if [ -z "$__INVMATCH" ] || ! git log --oneline ${commit}^1..${commit}^2 \
|
||||||
| grep -E "$__INVMATCH" >/dev/null 2>&1 ; then
|
| >/dev/null 2>&1 grep -E "$__INVMATCH" ; then
|
||||||
git log -1 --oneline ${commit}
|
git log -1 --oneline ${commit}
|
||||||
git log --format=' %h %s' ${commit}^1..${commit}^2
|
git log --format=' %h %s' ${commit}^1..${commit}^2
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ _do_release_commit() {
|
|||||||
|
|
||||||
if ! test "$ARG1" = '--use-current-commit' ; then
|
if ! test "$ARG1" = '--use-current-commit' ; then
|
||||||
echo "Building changelog since ${__LAST_TAG}..."
|
echo "Building changelog since ${__LAST_TAG}..."
|
||||||
__CHANGELOG="$(./scripts/git-log-pretty-since.sh "$__LAST_TAG" 'vim-patch:\S')"
|
__CHANGELOG="$(./scripts/git-log-pretty-since.sh "$__LAST_TAG" 'vim-patch:[^[:space:]]')"
|
||||||
|
|
||||||
git add CMakeLists.txt
|
git add CMakeLists.txt
|
||||||
git commit --edit -m "${__RELEASE_MSG} ${__CHANGELOG}"
|
git commit --edit -m "${__RELEASE_MSG} ${__CHANGELOG}"
|
||||||
|
|||||||
Reference in New Issue
Block a user