class Git::Log

Return the last n commits that match the specified criteria

@example The last (default number) of commits

git = Git.open('.')
Git::Log.new(git) #=> Enumerable of the last 30 commits

@example The last n commits

Git::Log.new(git).max_commits(50) #=> Enumerable of last 50 commits

@example All commits returned by ‘git log`

Git::Log.new(git).max_count(:all) #=> Enumerable of all commits

@example All commits that match complex criteria

Git::Log.new(git)
  .max_count(:all)
  .object('README.md')
  .since('10 years ago')
  .between('v1.0.7', 'HEAD')

@api public