lib/gitlab_git/repository.rb in gitlab_git-8.0.0 vs lib/gitlab_git/repository.rb in gitlab_git-8.1.0
- old
+ new
@@ -303,9 +303,14 @@
walker.reset
commits
end
+ # Counts the amount of commits between `from` and `to`.
+ def count_commits_between(from, to)
+ commits_between(from, to).size
+ end
+
# Returns the SHA of the most recent common ancestor of +from+ and +to+
def merge_base_commit(from, to)
rugged.merge_base(from, to)
end