Class: Hashira::GitLog

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/git_log.rb

Constant Summary collapse

LOG =
%w[log --no-renames --name-only --format=].freeze

Instance Method Summary collapse

Constructor Details

#initialize(directory) ⇒ GitLog

Returns a new instance of GitLog.



6
7
8
# File 'lib/hashira/git_log.rb', line 6

def initialize(directory)
  @directory = directory
end

Instance Method Details

#countsObject



10
# File 'lib/hashira/git_log.rb', line 10

def counts = output.split("\n").map(&:strip).reject(&:empty?).tally