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
c2b9ae29
Unverified
Commit
c2b9ae29
authored
Oct 26, 2021
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(changelog): don't show more than 40 commits (#10345)
Fixes #10345
parent
1e5e834e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
changelog.sh
tools/changelog.sh
+1
-1
No files found.
tools/changelog.sh
View file @
c2b9ae29
...
@@ -400,7 +400,7 @@ function main {
...
@@ -400,7 +400,7 @@ function main {
# commit if $since is unset, in short hash form.
# commit if $since is unset, in short hash form.
command
git rev-list
--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
# Truncate list on versions with a lot of commits
if
[[
-z
"
$since
"
]]
&&
((
++read_commits
>
35
))
;
then
if
((
++read_commits
>
40
))
;
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