get_workdir_id


Description:

public OId? get_workdir_id ()

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

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 ggit_submodule_status for a more complete picture about the state of the working directory.

Parameters:

this

a Submodule.

Returns:

the OID for the submodule in the current working directory or null.