class Git::Log

Builds and executes a ‘git log` query

This class provides a fluent interface for building complex ‘git log` queries.

Queries default to returning 30 commits; call {#max_count} with ‘:all` to return every matching commit. Calling {#all} adds the `–all` flag to include all refs in the search but does not change the number of commits returned.

The query is lazily executed when results are requested either via the modern ‘#execute` method or the deprecated Enumerable methods.

@example Using the modern ‘execute` API

log = git.log.max_count(50).between('v1.0', 'v1.1').author('Scott')
results = log.execute
puts "Found #{results.size} commits."
results.each { |commit| puts commit.sha }

@api public