gitlab_git 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gitlab_git/git_stats.rb +1 -1
- data/lib/gitlab_git/log_parser.rb +4 -3
- 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: 5ebbcb7c820cc43073ff11a89608553f4bb7abac
|
4
|
+
data.tar.gz: f060d02e573af1d86065507f29a0dc04bcc0f641
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928b0db6c557babb1a447e1a8ac551751b33ac02effa3b220b4ee37572019194fb6624ade26b0aba4e6a77c982a4653b91cfa466fe63aaf193d45f7cfeba5ded
|
7
|
+
data.tar.gz: 9e133707553e092b676af9f46b276a78b818750bdd0086482d1e7682128aeb9c8f6ff127ec24cc8f9f8de6de7804610906db70c33e036c219319cdc65d2d51bd
|
data/lib/gitlab_git/git_stats.rb
CHANGED
@@ -13,7 +13,7 @@ module Gitlab
|
|
13
13
|
log = nil
|
14
14
|
Grit::Git.with_timeout(30) do
|
15
15
|
# Limit log to 6k commits to avoid timeout for huge projects
|
16
|
-
args = ['-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges']
|
16
|
+
args = ['-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges', '--diff-filter=ACDM']
|
17
17
|
log = repo.git.run(nil, 'log', nil, {}, args)
|
18
18
|
end
|
19
19
|
|
@@ -15,9 +15,10 @@ module Gitlab
|
|
15
15
|
entry[:date] = slice[2]
|
16
16
|
|
17
17
|
if slice[4]
|
18
|
-
changes = slice[4]
|
19
|
-
|
20
|
-
entry[:
|
18
|
+
changes = slice[4]
|
19
|
+
|
20
|
+
entry[:additions] = $1.to_i if changes =~ /(\d+) insertion/
|
21
|
+
entry[:deletions] = $1.to_i if changes =~ /(\d+) deletion/
|
21
22
|
end
|
22
23
|
|
23
24
|
collection.push(entry)
|