2018-11-09 18:39:43 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-25 01:30:12 +00:00
|
|
|
module Gitlab
|
|
|
|
module Git
|
|
|
|
class LfsChanges
|
2021-06-15 18:09:57 +00:00
|
|
|
def initialize(repository, newrevs = nil)
|
2017-08-25 01:30:12 +00:00
|
|
|
@repository = repository
|
2021-06-15 18:09:57 +00:00
|
|
|
@newrevs = newrevs
|
2017-08-25 01:30:12 +00:00
|
|
|
end
|
|
|
|
|
2018-10-22 14:49:20 +00:00
|
|
|
def new_pointers(object_limit: nil, not_in: nil, dynamic_timeout: nil)
|
2021-06-15 18:09:57 +00:00
|
|
|
@repository.gitaly_blob_client.get_new_lfs_pointers(@newrevs, object_limit, not_in, dynamic_timeout)
|
2018-02-06 22:49:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def all_pointers
|
2020-03-25 09:08:11 +00:00
|
|
|
@repository.gitaly_blob_client.get_all_lfs_pointers
|
2018-06-07 17:09:45 +00:00
|
|
|
end
|
2017-08-25 01:30:12 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|