I am building a project using jGit, and I need to look at the text within the files and how its changed.

I have code for iterating through commits and I know the files I want to get the different versions of, I also have code for specifically looking at a single file and its commits using a LogCommand object, adding a path then going through the iterator of RevCommit objects.

What I need to do now is actually get the changed text between each version of the file, I'm not so much looking for explicit code example but which parts of the library I should be looking at and the pseudo code for doing this.