Skip to main content

create_shadow_skeleton

Function create_shadow_skeleton 

Source
pub fn create_shadow_skeleton(shadow: &Path) -> Result<()>
Expand description

What: Creates the directories and the HEAD of an empty bare repository on the files ref backend. Why: A directory another run of the same transaction already made is not an error, as with git init.

In TS you’d write (pseudocode):

await createShadowSkeleton(shadowPath);