Skip to content
Snippets Groups Projects
Commit b1a8fdd8 authored by akzhan's avatar akzhan Committed by Dmitriy Zaporozhets
Browse files

Git log follow support

parent 615e4968
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment