Skip to main content

format_packed_refs

Function format_packed_refs 

Source
pub fn format_packed_refs(refs: &[RefSnapshotEntry], target_ref: &str) -> String
Expand description

What: Formats the files-backend snapshot of every direct ref except the private target. Why: The target is written loose, so a packed copy would only be shadowed.

In TS you’d write (pseudocode):

formatPackedRefs({ refs, targetRef });