tried to find out what (int type) is, api snippet -> string $odb->hash(string contents, int type) found definition here http://libgit2.github.com/libgit2/#HEAD/type/git_otype