Method: Rugged::Repository#last_commit

Defined in:
lib/rugged/repository.rb

#last_commitObject

Get the most recent commit from this repo.

Returns a Rugged::Commit object.

[View source]

21
22
23
# File 'lib/rugged/repository.rb', line 21

def last_commit
  self.head.target
end