diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-16 16:39:23 +0000 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-02-23 10:09:46 +0000 |
commit | 442a6e880058138b6ae6843d9b70d62cbc5aadb0 (patch) | |
tree | 095c8713738a8690056b27bb2ca226477a2dc27d /app/models | |
parent | 981b5905a02ac89ca9f33ad7c91d8c1a576ed9af (diff) | |
download | gitlab-ce-442a6e880058138b6ae6843d9b70d62cbc5aadb0.tar.gz |
API method /projects/:id/repository/commits now works over every commit
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/repository.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 299a3f32a85..7888c1019e6 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -139,7 +139,7 @@ class Repository end end - def commits(ref, path: nil, limit: nil, offset: nil, skip_merges: false, after: nil, before: nil) + def commits(ref = nil, path: nil, limit: nil, offset: nil, skip_merges: false, after: nil, before: nil, all: nil) options = { repo: raw_repository, ref: ref, @@ -149,7 +149,8 @@ class Repository after: after, before: before, follow: Array(path).length == 1, - skip_merges: skip_merges + skip_merges: skip_merges, + all: all } commits = Gitlab::Git::Commit.where(options) |