Skip to main content

handle_pull

Function handle_pull 

Source
pub async fn handle_pull(
    registry: &RegistryClient,
    model: &str,
    remote: Option<String>,
    branch: Option<String>,
    rebase: bool,
) -> Result<()>
Expand description

Handle pull command

TODO: This currently uses RepositoryClient.update() which does fetch+merge, but doesn’t provide control over merge strategy (fast-forward vs regular merge). Consider adding more granular methods to RepositoryClient:

  • fetch_remote(remote, refspec)
  • merge_with_strategy(ref, strategy)