libgit2

git_index_checksum

Deprecated
Version:

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.

Deprecations

  • this function is deprecated with no replacement

Signature

const git_oid *git_index_checksum(git_index *index);

Parameters

In
index

an existing index object

Returns

a pointer to the checksum of the index

Versions