1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

feat(changelog): ignore merge commits

This commit is contained in:
Marc Cornellà 2021-07-07 10:40:05 +02:00
parent e32d4b1e19
commit 0e7d7b87f3
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -114,6 +114,11 @@ function parse-commit {
fi
}
# Ignore commit if it is a merge commit
if [[ $(command git show -s --format=%p $1 | wc -w) -gt 1 ]]; then
return
fi
# Parse commit with hash $1
local hash="$1" subject body warning rhash
subject="$(command git show -s --format=%s $hash)"