Command:
git --no-pager show -s --date=local --pretty=format:"- %h (%ae) %s%n"
Output:
- dcd509e ([email protected]) fix(ios): commit message
Command:
git tag --sort=-creatordate | grep 'v5' | head -2
- when you need to filter a particular tag
git tag --sort=-creatordate | head -2
- without tag filtering
git log --pretty=oneline v5.4.23...v5.4.24 --date=local --pretty=format:"- %h (%ae) %s%n"
Output:
- dcd509e ([email protected]) fix(ios): commit message
def get_changelog
most_recent_tags = sh("git tag --sort=-creatordate | grep '^Release' | head -2").split("\n")
commit_history = changelog_from_git_commits(
between: most_recent_tags,
pretty: "- %h (%ae) %s%n"
)
return commit_history
end