Pull incorporates changes from a remote repository into the current branch. Returns nil if the operation is successful, NoErrAlreadyUpToDate if there are no changes to be fetched, or an error. Pull only supports merges where the can be resolved as a fast-forward.
(o *PullOptions)
| 49 | // |
| 50 | // Pull only supports merges where the can be resolved as a fast-forward. |
| 51 | func (w *Worktree) Pull(o *PullOptions) error { |
| 52 | return w.PullContext(context.Background(), o) |
| 53 | } |
| 54 | |
| 55 | // PullContext incorporates changes from a remote repository into the current |
| 56 | // branch. Returns nil if the operation is successful, NoErrAlreadyUpToDate if |