Diff and patch the resources