This seperates out image changes from package changes making the image diffs a 
lot easier to read. The downside of this is 3 commits for each and every build.

Signed-off-by: Koen Kooi <k...@dominion.thruhere.net>
---
 meta/classes/buildhistory.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass 
b/meta/classes/buildhistory.bbclass
index 1926d12..3aec325 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -398,7 +398,9 @@ buildhistory_commit() {
                fi
                git add ${BUILDHISTORY_DIR}/*
                HOSTNAME=`hostname 2>/dev/null || echo unknown`
-               git commit ${BUILDHISTORY_DIR}/ --allow-empty -m "Build 
${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on 
$HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
+               for entry in ${BUILDHISTORY_DIR}/* ; do
+                       git commit $entry --allow-empty -m "$(basename $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
-- 
1.7.2.5


_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to