Comments
Patch
@@ -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
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 <koen@dominion.thruhere.net> --- meta/classes/buildhistory.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)