class Rugged::Patch

def additions

Returns the number of additions in the patch.
def additions
  stat[0]
end

def changes

Returns the number of total changes in the patch.
def changes
  additions + deletions
end

def deletions

Returns the number of deletions in the patch.
def deletions
  stat[1]
end

def hunks

Returns an Array containing all hunks of the patch.
def hunks
  each_hunk.to_a
end

def inspect

def inspect
  "#<#{self.class.name}:#{object_id}>"
end