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.

  1. const(libgit2.oid.git_oid)* git_index_checksum(libgit2.types.git_index* index)
  2. const(libgit2.oid.git_oid)* git_index_checksum(libgit2.types.git_index* index)
    extern (C) nothrow @nogc public
    git_index_checksum

Parameters

index libgit2.types.git_index*

an existing index object

Return Value

Type: const(libgit2.oid.git_oid)*

a pointer to the checksum of the index

Meta