aboutsummaryrefslogblamecommitdiffstats
path: root/options.go
blob: 300f1a1b19c88aef7e858380617e7e665b6ba1ad (plain) (tree)



















                                                                            
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
}