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

Function populatePushOptions

remote.go:1006–1020  ·  view source on GitHub ↗
(copts *C.git_push_options, opts *PushOptions, errorTarget *error)

Source from the content-addressed store, hash-verified

1004}
1005
1006func populatePushOptions(copts *C.git_push_options, opts *PushOptions, errorTarget *error) *C.git_push_options {
1007 C.git_push_options_init(copts, C.GIT_PUSH_OPTIONS_VERSION)
1008 if opts == nil {
1009 return nil
1010 }
1011
1012 copts.pb_parallelism = C.uint(opts.PbParallelism)
1013 copts.custom_headers = C.git_strarray{
1014 count: C.size_t(len(opts.Headers)),
1015 strings: makeCStringsFromStrings(opts.Headers),
1016 }
1017 populateRemoteCallbacks(&copts.callbacks, &opts.RemoteCallbacks, errorTarget)
1018 populateProxyOptions(&copts.proxy_opts, &opts.ProxyOptions)
1019 return copts
1020}
1021
1022func freePushOptions(copts *C.git_push_options) {
1023 if copts == nil {

Callers 1

PushMethod · 0.85

Calls 3

makeCStringsFromStringsFunction · 0.85
populateRemoteCallbacksFunction · 0.85
populateProxyOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…