Commit b1a8fdd8 authored by akzhan's avatar akzhan Committed by Dmitriy Zaporozhets

Git log follow support

parent 615e4968
...@@ -68,8 +68,8 @@ module Gitlab ...@@ -68,8 +68,8 @@ module Gitlab
end end
def commits(ref, path = nil, limit = nil, offset = nil) def commits(ref, path = nil, limit = nil, offset = nil)
if path if path.present?
repo.log(ref, path, max_count: limit, skip: offset) repo.log(ref, path, max_count: limit, skip: offset, follow: true)
elsif limit && offset elsif limit && offset
repo.commits(ref, limit, offset) repo.commits(ref, limit, offset)
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment