class Pronto::Git::Repository

def show_commit(sha)

def show_commit(sha)
  return empty_patches(sha) unless sha
  commit = @repo.lookup(sha)
  return empty_patches(sha) if commit.parents.count != 1
  # TODO: Rugged does not seem to support diffing against multiple parents
  diff = commit.diff(reverse: true)
  return empty_patches(sha) if diff.nil?
  Patches.new(self, sha, diff.patches)
end