git_odb_hash

Determine the object-ID (sha1 hash) of a data buffer

The resulting SHA-1 OID will be the identifier for the data buffer as if the data buffer it were to written to the ODB.

extern (C) nothrow @nogc
int
git_odb_hash

Parameters

out_ libgit2_d.oid.git_oid*

the resulting object-ID.

data const(void)*

data to hash

len size_t

size of the data

type libgit2_d.types.git_object_t

of the data to hash

Return Value

Type: int

0 or an error code

Meta