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

Git log follow support

parent 615e4968
......@@ -68,8 +68,8 @@ module Gitlab
end
def commits(ref, path = nil, limit = nil, offset = nil)
if path
repo.log(ref, path, max_count: limit, skip: offset)
if path.present?
repo.log(ref, path, max_count: limit, skip: offset, follow: true)
elsif limit && offset
repo.commits(ref, limit, offset)
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