Created
September 6, 2018 07:02
-
-
Save daredrum/113692fe1a79d0470626a530ec055bd4 to your computer and use it in GitHub Desktop.
Bash script for getting change log between two the last "development" tags
This file contains hidden or 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
| #!/bin/sh | |
| firstTag=$(git tag --list --sort=-taggerdate 'development-*' | head -1) | |
| secondTag=$(git tag --list --sort=-taggerdate 'development-*' | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}') | |
| echo "Changes between ${secondTag} and ${firstTag}\n" | |
| git log --pretty=format:'%h -%d %s (%cd) <%an>' ${secondTag}..${firstTag} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment