diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2012-04-01 00:06:44 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-01 12:39:54 +0100 |
commit | fba198ac7efe476a25c5761878ef2fcee97bf9f1 (patch) | |
tree | 25b16932419f5e240738e0d3ec532175ca7252a2 /meta | |
parent | 2e40558cc33c5c566a9a742c32eda3ea017f8607 (diff) | |
download | openembedded-core-fba198ac7efe476a25c5761878ef2fcee97bf9f1.tar.gz openembedded-core-fba198ac7efe476a25c5761878ef2fcee97bf9f1.tar.bz2 openembedded-core-fba198ac7efe476a25c5761878ef2fcee97bf9f1.tar.xz openembedded-core-fba198ac7efe476a25c5761878ef2fcee97bf9f1.zip |
buildhistory: make seperate commits for every changed top level entry in the buildhistory dir
This seperates out image changes from package changes making the image diffs a lot easier to read.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 222434072..8d5b0963f 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -401,7 +401,10 @@ buildhistory_commit() { if [ "$repostatus" != "" ] ; then git add ${BUILDHISTORY_DIR}/* HOSTNAME=`hostname 2>/dev/null || echo unknown` - git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null + # porcelain output looks like "?? packages/foo/bar" + for entry in `echo $repostatus | awk '{print $2}' | awk -F/ '{print $1}' | sort | uniq` ; do + git commit ${BUILDHISTORY_DIR}/$entry -m "$entry: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null + done if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then git push -q ${BUILDHISTORY_PUSH_REPO} fi |