Method: Grit::Index#write_blob

Defined in:
lib/grit/index.rb

#write_blob(data) ⇒ Object

Write a blob to the index.

data - The String data to write.

Returns the String SHA1 of the new blob.



217
218
219
# File 'lib/grit/index.rb', line 217

def write_blob(data)
  self.repo.git.put_raw_object(data, 'blob')
end