Features/diff generator

generator implementation for diff (https://github.com/libgit2/pygit2/issues/183)