Skip to main content

format_shadow_config

Function format_shadow_config 

Source
pub fn format_shadow_config(
    format: &RepositoryFormat,
    common_dir: &Path,
    worktree_root: &Path,
) -> String
Expand description

What: Formats the shadow config file. Why: The line order is the incumbent’s: hooks path before the include, then the worktree, gc and maintenance overrides.

In TS you’d write (pseudocode):

formatShadowConfig({ format, commonDir, worktreeRoot });