Skip to main content

read_submodule_head_for_checkout

Function read_submodule_head_for_checkout 

Source
pub fn read_submodule_head_for_checkout(sub_dir: &Path) -> Option<ObjectId>
Expand description

Read the HEAD commit OID from a submodule checkout directory.

Returns None if the path is missing, not a submodule checkout, or has no resolvable HEAD.