MCPcopy Create free account
hub / github.com/go-git/go-git / Validate

Method Validate

options.go:165–175  ·  view source on GitHub ↗

Validate validates the fields and sets the default values.

()

Source from the content-addressed store, hash-verified

163
164// Validate validates the fields and sets the default values.
165func (o *PullOptions) Validate() error {
166 if o.RemoteName == "" {
167 o.RemoteName = DefaultRemoteName
168 }
169
170 if o.ReferenceName == "" {
171 o.ReferenceName = plumbing.HEAD
172 }
173
174 return nil
175}
176
177type TagMode int
178

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected