Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
0e7d7b87
Unverified
Commit
0e7d7b87
authored
Jul 07, 2021
by
Marc Cornellà
Browse files
feat(changelog): ignore merge commits
parent
e32d4b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/changelog.sh
View file @
0e7d7b87
...
...
@@ -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
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment