MCPcopy Create free account
hub / github.com/libgit2/git2go / NewRegisteredSmartTransport

Function NewRegisteredSmartTransport

transport.go:224–230  ·  view source on GitHub ↗

NewRegisteredSmartTransport adds a custom transport definition, to be used in addition to the built-in set of transports that come with libgit2.

(
	name string,
	stateless bool,
	callback SmartSubtransportCallback,
)

Source from the content-addressed store, hash-verified

222// NewRegisteredSmartTransport adds a custom transport definition, to be used
223// in addition to the built-in set of transports that come with libgit2.
224func NewRegisteredSmartTransport(
225 name string,
226 stateless bool,
227 callback SmartSubtransportCallback,
228) (*RegisteredSmartTransport, error) {
229 return newRegisteredSmartTransport(name, stateless, callback, false)
230}
231
232func newRegisteredSmartTransport(
233 name string,

Callers 3

TestTransportFunction · 0.85

Calls 1

Tested by 1

TestTransportFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…