We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e95d8a0 commit 871f7bbCopy full SHA for 871f7bb
lib/octostat/command.rb
@@ -14,7 +14,7 @@ def call
14
@git = Git.new(path)
15
git.each_slice(batch_size).with_index do |commits, batch|
16
puts_progress batch * batch_size
17
- commits.each {|commit| db.insert_commit(**commit) }
+ commits.each { |commit| db.insert_commit(**commit) }
18
end
19
puts_progress git.count
20
puts "\nDone!"
@@ -24,7 +24,6 @@ def call
24
25
attr_reader :db_path, :path, :batch_size, :git
26
27
-
28
def puts_progress processed
29
print "\r#{(processed.to_f / git.count.to_f * 100).ceil}%"
30
$stdout.flush
0 commit comments