Class: Gitlab::Git::LfsChanges

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/git/lfs_changes.rb

Instance Method Summary collapse

Constructor Details

#initialize(repository, newrev = nil) ⇒ LfsChanges

Returns a new instance of LfsChanges.


6
7
8
9
# File 'lib/gitlab/git/lfs_changes.rb', line 6

def initialize(repository, newrev = nil)
  @repository = repository
  @newrev = newrev
end

Instance Method Details

#all_pointersObject


15
16
17
# File 'lib/gitlab/git/lfs_changes.rb', line 15

def all_pointers
  @repository.gitaly_blob_client.get_all_lfs_pointers
end

#new_pointers(object_limit: nil, not_in: nil, dynamic_timeout: nil) ⇒ Object


11
12
13
# File 'lib/gitlab/git/lfs_changes.rb', line 11

def new_pointers(object_limit: nil, not_in: nil, dynamic_timeout: nil)
  @repository.gitaly_blob_client.get_new_lfs_pointers(@newrev, object_limit, not_in, dynamic_timeout)
end