libgit2

git_submodule_head_id

Version:

Get the OID for the submodule in the current HEAD tree.

Signature

const git_oid *git_submodule_head_id(git_submodule *submodule);

Parameters

In
submodule

Pointer to submodule object

Returns

Pointer to git_oid or NULL if submodule is not in the HEAD.

Versions