Skip to main content

git_update_repo

Function git_update_repo 

Source
pub fn git_update_repo(
    path_fn: fn() -> Result<PathBuf>,
    repo: &str,
    branch: &str,
    remote: &str,
) -> Result<()>
Expand description

Downloads the updates of a git repository in the config folder.

ยงArguments

  • path_fn - Returns the local folder of the repository.
  • repo - URL of the repository.
  • branch - Branch to update.
  • remote - Name of the remote.