Git log follow support

This commit is contained in:
akzhan
2013-04-15 16:53:19 +03:00
committed by Dmitriy Zaporozhets
parent 615e496846
commit b1a8fdd84d
+2 -2
View File
@@ -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