mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Git log follow support
This commit is contained in:
committed by
Dmitriy Zaporozhets
parent
615e496846
commit
b1a8fdd84d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user