pub fn write_commit(repo: &Repo, commit: &Commit) -> Result<Hash>
write a commit to the object store
commits are serialized as CBOR, then zstd compressed. the hash is computed over the compressed bytes.