Added preliminary support for diff. Based on the example that can be found in libgit2.