In title, "todo: " is too general. It's already todo repo.
Please mention the error it fixed.
- %x(git -C ~/.am/#{repo} pull --rebase)
- %x(cd ~/.am/#{repo} && git shortlog -ens --no-merges --since "#{days} days ago" -- #{files}).each_line do |line|
No need change the above 2 lines?
Thanks, Fengguang
- %x(cd #{ENV['HOME']}/.am/ && git clone file:///c/#{repo}.git) unless File.exist?("#{ENV['HOME']}/.am/#{repo}")
- %x(git -C #{ENV['HOME']}/.am/#{repo} pull --rebase 2>&1)
- file = %x(cd #{ENV['HOME']}/.am/#{repo} && git shortlog -ens --no-merges --since "#{days} days ago" -- #{files})
- file.each_line do |line| if line =~ /(\d+)\t(.*) <(.*)>/ count = $1.to_i name = $2
-- 2.23.0