git_submodule_wd_id

Get the OID for the submodule in the current working directory.

This returns the OID that corresponds to looking up 'HEAD' in the checked out submodule. If there are pending changes in the index or anything else, this won't notice that. You should call git_submodule_status() for a more complete picture about the state of the working directory.

extern (C) nothrow @nogc
git_submodule_wd_id

Parameters

submodule libgit2_d.types.git_submodule*

Pointer to submodule object

Return Value

Type: const(libgit2_d.oid.git_oid)*

Pointer to git_oid or null if submodule is not checked out.

Meta