Skip to main content

init

Function init 

Source
pub(crate) fn init(
    repo: Repo,
    credential_opts: &CredentialOptions,
    key_opts: &KeyOptions,
    config_opts: &ConfigOptions,
) -> Result<Repository<OpenStatus>>
Expand description

Initialize repository

§Arguments

  • repo - Repository to initialize
  • credential_opts - Credential options
  • key_opts - Key options (only used when generating a new key)
  • config_opts - Config options

§Errors

  • If getting the credentials from the options fails

§Returns

Returns the initialized repository