Git Patches

It can be handy to temporarily work with a git repositoriy, maintaining patches that are applied by build root.

Use git_patches.patch to support this endeavour.

Apply

cd ${BUILDROOT}
patch -p1 < git_patches.patch

Patch

rm -rf ${BUILDROOT}/patches/${PACKAGE}/*.gitpatch
git format-patch -o ${BUILDROOT}/patches/${PACKAGE} --suffix '.gitpatch' ${BASE_REF}