git_index_checksum

Get the checksum of the index

This checksum is the SHA-1 hash over the index file (except the last 20 bytes which are the checksum itself). In cases where the index does not exist on-disk, it will be zeroed out.

extern (C) nothrow @nogc
git_index_checksum

Parameters

index libgit2_d.types.git_index*

an existing index object

Return Value

Type: const(libgit2_d.oid.git_oid)*

a pointer to the checksum of the index

Meta