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

Revert "fix(changelog): don't parse commits of ignored types"

This reverts commit 63b7e5767d.
This commit is contained in:
Marc Cornellà 2021-10-07 13:35:07 +02:00
parent f0bbef1a07
commit 607d2f1eda
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -120,7 +120,7 @@ function parse-commit {
fi fi
# Parse commit with hash $1 # Parse commit with hash $1
local hash="$1" subject body type warning rhash local hash="$1" subject body warning rhash
subject="$(command git show -s --format=%s $hash)" subject="$(command git show -s --format=%s $hash)"
body="$(command git show -s --format=%b $hash)" body="$(command git show -s --format=%b $hash)"
@ -132,12 +132,8 @@ function parse-commit {
# commit body # commit body
# [BREAKING CHANGE: warning] # [BREAKING CHANGE: warning]
# if commit type is not going to be displayed, do nothing else
type="$(commit:type "$subject")"
(( ${MAIN_TYPES[(Ie)$type]} || ${OTHER_TYPES[(Ie)$type]} )) || return
# commits holds the commit type # commits holds the commit type
commits[$hash]="$type" commits[$hash]="$(commit:type "$subject")"
# scopes holds the commit scope # scopes holds the commit scope
scopes[$hash]="$(commit:scope "$subject")" scopes[$hash]="$(commit:scope "$subject")"
# subjects holds the commit subject # subjects holds the commit subject