| 124 | ) |
| 125 | |
| 126 | type FetchOptions struct { |
| 127 | // Callbacks to use for this fetch operation |
| 128 | RemoteCallbacks RemoteCallbacks |
| 129 | // Whether to perform a prune after the fetch |
| 130 | Prune FetchPrune |
| 131 | // Whether to write the results to FETCH_HEAD. Defaults to |
| 132 | // on. Leave this default in order to behave like git. |
| 133 | UpdateFetchhead bool |
| 134 | |
| 135 | // Determines how to behave regarding tags on the remote, such |
| 136 | // as auto-downloading tags for objects we're downloading or |
| 137 | // downloading all of them. |
| 138 | // |
| 139 | // The default is to auto-follow tags. |
| 140 | DownloadTags DownloadTags |
| 141 | |
| 142 | // Headers are extra headers for the fetch operation. |
| 143 | Headers []string |
| 144 | |
| 145 | // Proxy options to use for this fetch operation |
| 146 | ProxyOptions ProxyOptions |
| 147 | } |
| 148 | |
| 149 | type RemoteConnectOptions struct { |
| 150 | // Proxy options to use for this fetch operation |
nothing calls this directly
no outgoing calls
no test coverage detected