Sha256: 7f56ad5b54a55905bf0a574d3a634dcae785d470ca477d2077b598159e6a4829
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
module GitGcCron class CLI def self.start verbose = ARGV.first == '-v' and ARGV.shift ARGV.each do |base| repos = Dir["#{base}/**/{.git,*.git}"] repos.each_with_index do |repo_path, i| if File.directory?(repo_path) then Dir.chdir(repo_path) do puts repo_path if verbose system ["git", "(##{i + 1}/#{repos.size + 1} #{repo_path}) git"], "gc", "-q" end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-gc-cron-0.0.4 | lib/git_gc_cron/cli.rb |