Validate validates the fields and sets the default values.
()
| 163 | |
| 164 | // Validate validates the fields and sets the default values. |
| 165 | func (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 | |
| 177 | type TagMode int |
| 178 |
nothing calls this directly
no outgoing calls
no test coverage detected