Skip to main content

init

Function init 

Source
pub fn init(layout: &RepoLayout) -> RefResult<()>
Expand description

Initialise the ref layout: creates refs/, refs/heads/, refs/tags/, refs/remotes/ under the common dir and writes a default HEAD = ref: refs/heads/main\n into the worktree state dir if HEAD does not already exist.