Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
140bfa84
Unverified
Commit
140bfa84
authored
Oct 26, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(changelog): go back to ignoring commits from merged branches
parent
9c8131e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
changelog.sh
tools/changelog.sh
+3
-2
No files found.
tools/changelog.sh
View file @
140bfa84
...
@@ -401,17 +401,18 @@ function main {
...
@@ -401,17 +401,18 @@ function main {
# --format: [7-char hash]<field sep>[ref names]<field sep>[subject]<field sep>[body]
# --format: [7-char hash]<field sep>[ref names]<field sep>[subject]<field sep>[body]
# --abbrev=7: force commit hashes to be 7 characters long
# --abbrev=7: force commit hashes to be 7 characters long
# --no-merges: merge commits are omitted
# --no-merges: merge commits are omitted
# --first-parent: commits from merged branches are omitted
local
SEP
=
"0mZmAgIcSeP"
local
SEP
=
"0mZmAgIcSeP"
local
-a
raw_commits
local
-a
raw_commits
raw_commits
=(
${
(0)
"
$(
command
git log
-z
\
raw_commits
=(
${
(0)
"
$(
command
git log
-z
\
--format
=
"%h
${
SEP
}
%D
${
SEP
}
%s
${
SEP
}
%b"
--abbrev
=
7
\
--format
=
"%h
${
SEP
}
%D
${
SEP
}
%s
${
SEP
}
%b"
--abbrev
=
7
\
--no-merges
$range
)
"
}
)
--no-merges
--first-parent
$range
)
"
}
)
local
raw_commit
local
raw_commit
local
-a
raw_fields
local
-a
raw_fields
for
raw_commit
in
$raw_commits
;
do
for
raw_commit
in
$raw_commits
;
do
# Truncate list on versions with a lot of commits
# Truncate list on versions with a lot of commits
if
((
++read_commits
>
40
))
;
then
if
[[
-z
"
$since
"
]]
&&
((
++read_commits
>
35
))
;
then
truncate
=
1
truncate
=
1
break
break
fi
fi
...
...
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