mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-18 07:06:45 +08:00
feat(changelog): ignore merge commits
This commit is contained in:
1 file changed
+5
@@ -114,6 +114,11 @@ function parse-commit {
|
|||||||
fi
|
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
|
# Parse commit with hash $1
|
||||||
local hash="$1" subject body 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)"
|
||||||
|
|||||||
Reference in new issue
Block a user