Read a file from disk and fill a git_oid with the object id
that the file would have if it were written to the Object
Database as an object of the given type. Similar functionality
to git.git's git hash-object
without the -w
flag.
file to read and determine object id for
GIT_SUCCESS if valid; error code otherwise