Method: MultiGit::Repository#write

Defined in:
lib/multi_git/repository.rb

#write(content) ⇒ MultiGit::Object Also known as: <<

This method is abstract.

Writes something to the repository.

If called with a String or an IO, this method creates a Blob with the given content. This is the easiest way to create blobs.

If called with a Object, this method determines if the object does already exist and writes it otherwise.

If called with a Builder, this method inserts the content of the builder to the repository. This is the easiest way to create trees/commits.

Parameters:

Returns:



112
# File 'lib/multi_git/repository.rb', line 112

abstract :write