aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-13 01:51:00 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-13 01:51:00 +0200
commita6ea9e8dd2eda48c8405f609e0fb444d3717af53 (patch)
treea2815bca686619d10151a531cddf5a7fdadedffa /options.go
parentae999ede139f5fa5601ffb7c55979608b112d274 (diff)
downloadgo-git-a6ea9e8dd2eda48c8405f609e0fb444d3717af53.tar.gz
Repository and Remote API changes
Diffstat (limited to 'options.go')
-rw-r--r--options.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/options.go b/options.go
new file mode 100644
index 0000000..300f1a1
--- /dev/null
+++ b/options.go
@@ -0,0 +1,20 @@
+package git
+
+import (
+ "gopkg.in/src-d/go-git.v3/clients/common"
+ "gopkg.in/src-d/go-git.v4/core"
+)
+
+// CloneOptions describe how a clone should be perform
+type CloneOptions struct {
+ // The (possibly remote) repository URL to clone from
+ URL string
+ // Auth credentials, if required, to uses with the remote repository
+ Auth common.AuthMethod
+}
+
+// FetchOptions describe how a fetch should be perform
+type FetchOptions struct {
+ // Remote branch to fetch
+ ReferenceName core.ReferenceName
+}