Skip to main content

pull

Function pull 

Source
pub fn pull(repo: &Repository, remote_name: &str, branch: &str) -> Result<()>
Expand description

Pull from a remote: fetch + fast-forward merge of the given branch.

If a fast-forward is not possible (diverged histories), this returns an error rather than creating a merge commit — callers can handle that case with crate::features::branches::merge_branch.