libgit2

git_packbuilder_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 packfile has been written.

Deprecations

  • use git_packbuilder_name

Signature

const git_oid *git_packbuilder_hash(git_packbuilder *pb);

Parameters

In
pb

The packbuilder object

Returns

0 or an error code

Versions