Method: Rugged::Repository#last_commit
- Defined in:
- lib/rugged/repository.rb
#last_commit ⇒ Object
Get the most recent commit from this repo.
Returns a Rugged::Commit object.
21 22 23 |
# File 'lib/rugged/repository.rb', line 21 def last_commit self.head.target end |