gitlab_git 5.9.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/gitlab_git/repository.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce03ca6007fea80f20f967c1ee4eba934419366
|
4
|
+
data.tar.gz: a43107fb46facf70055e47966394ba37e38ab0f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47f0f2c5c33c2e363dfd2e8e08114495dd3a1331a6011bc86bf0188fca3fde40a564dacc852332be281fe32985fbc4c8d647736c220e36400d99c078607f157d
|
7
|
+
data.tar.gz: 3bb88bbc2e04d95a7fb1c66497ac4eecdbf226c90e863ac2c8b7ce30ff509ac0c89d559f1b0ed1ecc96bdc0c565932160befd652811fc876d2fbb7dff38b47e6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
6.0.0
|
@@ -349,6 +349,14 @@ module Gitlab
|
|
349
349
|
def submodules(ref)
|
350
350
|
Grit::Submodule.config(grit, ref)
|
351
351
|
end
|
352
|
+
|
353
|
+
# Return total commits count accessible from passed ref
|
354
|
+
def commit_count(ref)
|
355
|
+
walker = Rugged::Walker.new(rugged)
|
356
|
+
walker.sorting(Rugged::SORT_TOPO | Rugged::SORT_REVERSE)
|
357
|
+
walker.push(ref)
|
358
|
+
walker.count
|
359
|
+
end
|
352
360
|
end
|
353
361
|
end
|
354
362
|
end
|