lib/grit/commit.rb in mojombo-grit-0.9.3 vs lib/grit/commit.rb in mojombo-grit-0.9.4
- old
+ new
@@ -69,10 +69,10 @@
# +repo+ is the Repo
# +ref+ is the ref from which to begin (SHA1 or name)
#
# Returns Integer
def self.count(repo, ref)
- repo.git.rev_list({}, ref).strip.split("\n").size
+ repo.git.rev_list({}, ref).size / 41
end
# Find all commits matching the given criteria.
# +repo+ is the Repo
# +ref+ is the ref from which to begin (SHA1 or name) or nil for --all