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
7c5ab01a
Unverified
Commit
7c5ab01a
authored
Aug 14, 2021
by
Marc Cornellà
Browse files
fix(changelog): also display commits from merged branches
parent
0b809c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/changelog.sh
View file @
7c5ab01a
...
...
@@ -391,9 +391,7 @@ function main {
# Get commit list from $until commit until $since commit, or until root
# commit if $since is unset, in short hash form.
# --first-parent is used when dealing with merges: it only prints the
# merge commit, not the commits of the merged branch.
command
git rev-list
--first-parent
--abbrev-commit
--abbrev
=
7
${
since
:+
$since
..
}
$until
|
while
read hash
;
do
command
git rev-list
--abbrev-commit
--abbrev
=
7
${
since
:+
$since
..
}
$until
|
while
read hash
;
do
# Truncate list on versions with a lot of commits
if
[[
-z
"
$since
"
]]
&&
((
++read_commits
>
35
))
;
then
truncate
=
1
...
...
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