pub fn format_shadow_config(
format: &RepositoryFormat,
common_dir: &Path,
worktree_root: &Path,
) -> StringExpand 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 });