Created
October 24, 2014 17:05
-
-
Save Lmd64-zz/d591ff0c6ed4dc157e6f to your computer and use it in GitHub Desktop.
Pass in a git commit id to spit out all commit logs since that commit (inclusive)
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
LAST_COMMIT=$1 | |
NOTES=`git log --pretty=$'tformat:%h %ad by %an %s%d' $LAST_COMMIT..origin/master --date=short` | |
if [[ -z "$NOTES" ]]; then | |
NOTES="No commits since last build" | |
fi | |
echo Commit notes for $appname version $VERSION gitversion $GIT_VERSION: | |
echo "$NOTES" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Useful for giving details on builds in continuous integrations...