class Git::Diff

Diff between two commits or between a commit and the working tree

@example Diff between two commits

diff = repo.diff('HEAD~1', 'HEAD')
diff.size       # => 3
diff.insertions # => 20
diff.deletions  # => 5

@example Limit diff to a specific path

diff = repo.diff('HEAD~1', 'HEAD').path('lib/')

@api public