pub fn read_submodule_head_for_checkout(sub_dir: &Path) -> Option<ObjectId>
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.
None