kevinsawicki / gitective

Find the Git commits you're looking for
http://gitective.org
117 stars 53 forks source link

add a helper method to turn the Collection<Edit> into a patch string? #8

Open jstrachan opened 11 years ago

jstrachan commented 11 years ago

I couldn't figure out how to take the results of BlobUtils.diff() and use the DiffFormatter from JGit to create a human readable textual representation of the differences.

Any chance of adding a helper method maybe? Rather than using BlobUtils.diff() I ended up snaffling some code from gitblit for now: https://github.com/hawtio/hawtio/blob/master/hawtio-git/src/main/java/io/hawt/git/GitFacade.java#L301