grit-ext
Resources
How to Use
To use grit-ext, after installing, just require 'grit-ext':
require 'grit-ext'
All of the extensions, additionally to normal grit classes, will be available to you.
Diff#hunks
Diff#hunks method returns an array of DiffHunk. These hunks provide structured information about the diff.