MCPcopy
hub / github.com/go-git/go-git / Pull

Method Pull

worktree.go:51–53  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

49//
50// Pull only supports merges where the can be resolved as a fast-forward.
51func (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

Callers 13

TestPullCheckoutMethod · 0.80
TestPullFastForwardMethod · 0.80
TestPullProgressMethod · 0.80
TestPullAddMethod · 0.80
TestPullDepthMethod · 0.80
mainFunction · 0.80

Calls 1

PullContextMethod · 0.95

Tested by 11

TestPullCheckoutMethod · 0.64
TestPullFastForwardMethod · 0.64
TestPullProgressMethod · 0.64
TestPullAddMethod · 0.64
TestPullDepthMethod · 0.64