pub fn resolve_ref_format(
context: &GitContext,
cwd: &Path,
) -> Result<RefFormat, GitFailure>Expand description
What: Reads the ref storage backend. Why: A Git that cannot report it (before 2.45) is the files backend.
In TS you’d write (pseudocode):
await resolveRefFormat({ gitPath, cwd });