Method: Grit::Repo#log
- Defined in:
- lib/grit/repo.rb
#log(commit = 'master', path = nil, options = {}) ⇒ Object
The commit log for a treeish
Returns Grit::Commit[]
555 556 557 558 559 560 561 |
# File 'lib/grit/repo.rb', line 555 def log(commit = 'master', path = nil, = {}) = {:pretty => "raw"} = .merge() arg = path ? [commit, '--', path] : [commit] commits = self.git.log(, *arg) Commit.list_from_string(self, commits) end |