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