Read a file from the working folder of a repository and write it to the object database.
return the id of the written blob
repository where the blob will be written. this repository cannot be bare
file from which the blob will be created, relative to the repository's working dir
0 or an error code