Skip to main content

submodule_porcelain_flags

Function submodule_porcelain_flags 

Source
pub fn submodule_porcelain_flags(
    super_worktree: &Path,
    rel_path: &str,
    recorded_oid: ObjectId,
) -> SubmodulePorcelainFlags
Expand description

Inspect a checked-out submodule at rel_path (relative to super_worktree) and return flags used for git status --porcelain=v2 submodule tokens.

recorded_oid is the gitlink OID stored in the parent index (stage 0). When the submodule is not checked out or cannot be opened, returns Default::default().