Method: Git::Object::Commit#set_commit

Defined in:
lib/git/object.rb

#set_commit(data)

rubocop:disable Naming/AccessorMethodName



215
216
217
218
219
220
221
# File 'lib/git/object.rb', line 215

def set_commit(data) # rubocop:disable Naming/AccessorMethodName
  Git::Deprecation.warn(
    'Git::Object::Commit#set_commit is deprecated and will be removed in a future version. ' \
    'Use #from_data instead.'
  )
  from_data(data)
end