Class: Hotspots::Repository::GitCommand::Log
- Inherits:
-
Object
- Object
- Hotspots::Repository::GitCommand::Log
- Defined in:
- lib/hotspots/repository/git_command.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Log
constructor
A new instance of Log.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ Log
Returns a new instance of Log.
5 6 7 8 |
# File 'lib/hotspots/repository/git_command.rb', line 5 def initialize() @since_days = [:since_days] @message_filter = [:message_filter].to_s end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/hotspots/repository/git_command.rb', line 10 def to_s "git log --pretty=\"%H\" #{since_clause}#{grep_clause}" end |