Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-08-01 14:14:41 +0300
committerAhmad Sherif <me@ahmadsherif.com>2016-08-03 20:26:10 +0300
commit08c1dd348273df67bf14172e9082308e12f94784 (patch)
tree16bed3278ab263b50efa94b4ebc8831632b57dec /app/workers
parent6eba7188f1cd1fc0bfcb8b1cf46f40338dc892b5 (diff)
Use commit deltas when counting files in IrkerWorker
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/irker_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/irker_worker.rb b/app/workers/irker_worker.rb
index 07cc7c1cbd7..19f38358eb5 100644
--- a/app/workers/irker_worker.rb
+++ b/app/workers/irker_worker.rb
@@ -141,7 +141,7 @@ class IrkerWorker
end
def files_count(commit)
- diffs = commit.raw_diffs
+ diffs = commit.raw_diffs(deltas_only: true)
files = "#{diffs.real_size} file"
files += 's' if diffs.size > 1