class Git::Log
Builds and executes a ‘git log` query.
This class provides a fluent interface for building complex ‘git log` queries. 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
Constants
- Result
-
An immutable, Enumerable collection of ‘Git::Object::Commit` objects. Returned by `Git::Log#execute`. @api public