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
eeab4e51
Commit
eeab4e51
authored
Oct 31, 2020
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(updater): add changelog display by parsing the commit list
parent
e093a4cf
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
425 additions
and
0 deletions
+425
-0
changelog.sh
tools/changelog.sh
+418
-0
upgrade.sh
tools/upgrade.sh
+7
-0
No files found.
tools/changelog.sh
0 → 100755
View file @
eeab4e51
This diff is collapsed.
Click to expand it.
tools/upgrade.sh
View file @
eeab4e51
...
...
@@ -64,6 +64,13 @@ if git pull --rebase --stat origin master; then
ret
=
80
# non-zero exit code to indicate no changes pulled
else
message
=
"Hooray! Oh My Zsh has been updated!"
# Display changelog with less if available, otherwise just print it to the terminal
if
((
$+
commands[less]
))
;
then
command
less
-R
<
(
"
$ZSH
/tools/changelog.sh"
HEAD
"
$last_commit
"
)
else
"
$ZSH
/tools/changelog.sh"
HEAD
"
$last_commit
"
fi
fi
printf
'%s %s__ %s %s %s %s %s__ %s\n'
$RAINBOW
$RESET
...
...
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