Skip to content

Instantly share code, notes, and snippets.

@daredrum
Created September 6, 2018 07:02
Show Gist options
  • Select an option

  • Save daredrum/113692fe1a79d0470626a530ec055bd4 to your computer and use it in GitHub Desktop.

Select an option

Save daredrum/113692fe1a79d0470626a530ec055bd4 to your computer and use it in GitHub Desktop.
Bash script for getting change log between two the last "development" tags
#!/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