libgit2

git_indexer_hash

Deprecated
Version:

Get the packfile's hash

A packfile's name is derived from the sorted hashing of all object names. This is only correct after the index has been finalized.

Deprecations

  • use git_indexer_name

Signature

const git_oid *git_indexer_hash(const git_indexer *idx);

Parameters

In
idx

the indexer instance

Returns

the packfile's hash

Versions