Skip to content

Instantly share code, notes, and snippets.

@Lmd64-zz
Created October 24, 2014 17:05
Show Gist options
  • Save Lmd64-zz/d591ff0c6ed4dc157e6f to your computer and use it in GitHub Desktop.
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)
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"
@Lmd64-zz
Copy link
Author

Useful for giving details on builds in continuous integrations...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment