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