[oe-commits] Koen Kooi : buildhistory: make seperate commits for every changed top level entry in the buildhistory dir
git at git.openembedded.org
git at git.openembedded.org
Mon Apr 2 03:31:21 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: fba198ac7efe476a25c5761878ef2fcee97bf9f1
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fba198ac7efe476a25c5761878ef2fcee97bf9f1
Author: Koen Kooi <koen at dominion.thruhere.net>
Date: Sun Apr 1 00:06:44 2012 +0200
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 at dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
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 2224340..8d5b096 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
More information about the Openembedded-commits
mailing list