-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ordering was incorrect. forces most recent commits first
- Loading branch information
1 parent
d37c5e4
commit 4f27245
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
#!/usr/bin/env bash | ||
printf "# Changelog\n\n" | ||
previous_tag=0 | ||
for current_tag in $(git tag --sort=-creatordate) | ||
do | ||
|
||
for current_tag in $(git tag --sort=creatordate) | ||
do | ||
if [ "$previous_tag" != 0 ];then | ||
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag}) | ||
printf "## ${previous_tag} (${tag_date})\n\n" | ||
git log ${current_tag}...${previous_tag} --pretty=format:'* %s [View](https://github.com/esatterwhite/skyring/commit/%H)' | grep -v Merge | ||
printf "\n\n" | ||
fi | ||
previous_tag=${current_tag} | ||
done | ||
if [ "$previous_tag" != 0 ];then | ||
tag_date=$(git log -1 --pretty=format:'%ad' --date=short ${previous_tag}) | ||
printf "## ${previous_tag} (${tag_date})\n\n" | ||
git log ${current_tag}...${previous_tag} --pretty=format:'* %s [View](https://github.com/esatterwhite/skyring/commit/%H)' | grep -v Merge | ||
printf "\n\n" | ||
fi | ||
previous_tag=${current_tag} | ||
done |