libgit2

git_commit_id

Version:

Get the id of a commit.

Signature

const git_oid *git_commit_id(git_commit *commit);

Parameters

git_commit *
In
commit

a previously loaded commit.

Returns

const git_oid *

object identity for the commit.

Versions