class Rugged::Repository

def last_commit

Returns a Rugged::Commit object.

Get the most recent commit from this repo.
def last_commit
  self.lookup self.head.target
end