summaryrefslogtreecommitdiff
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index fb70f55..3a435d1 100644
--- a/remote.go
+++ b/remote.go
@@ -168,6 +168,13 @@ type ProxyOptions struct {
Url string
}
+func proxyOptionsFromC(copts *C.git_proxy_options) *ProxyOptions {
+ return &ProxyOptions{
+ Type: ProxyType(copts._type),
+ Url: C.GoString(copts.url),
+ }
+}
+
type Remote struct {
doNotCompare
ptr *C.git_remote