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

Method ListContext

remote.go:1338–1340  ·  view source on GitHub ↗

List the references on the remote repository. The provided Context must be non-nil. If the context expires before the operation is complete, an error is returned. The context only affects to the transport operations.

(ctx context.Context, o *ListOptions)

Source from the content-addressed store, hash-verified

1336// operation is complete, an error is returned. The context only affects to the
1337// transport operations.
1338func (r *Remote) ListContext(ctx context.Context, o *ListOptions) (rfs []*plumbing.Reference, err error) {
1339 return r.list(ctx, o)
1340}
1341
1342func (r *Remote) List(o *ListOptions) (rfs []*plumbing.Reference, err error) {
1343 timeout := o.Timeout

Callers 1

ListMethod · 0.95

Calls 1

listMethod · 0.95

Tested by

no test coverage detected