Method: Grit::Repo#commit
- Defined in:
- lib/grit/repo.rb
#commit(id) ⇒ Object
The Commit object for the specified id
+id+ is the SHA1 identifier of the commit
Returns Grit::Commit (baked)
438 439 440 441 442 |
# File 'lib/grit/repo.rb', line 438 def commit(id) = {:max_count => 1} Commit.find_all(self, id, ).first end |