class GitClient

Public Class Methods

new(dir) click to toggle source
# File lib/git_heat/git_client.rb, line 2
def initialize(dir)
  @dir = dir
end

Public Instance Methods

stat_history() click to toggle source
# File lib/git_heat/git_client.rb, line 5
def stat_history
  ret = nil
  Dir.chdir(@dir) do
    ret = `git log --numstat --pretty=format:"commit: %H %cd" --reverse`
  end
  ret
end