18
18
ErrInvalidRefSpec = errors .New ("invalid refspec" )
19
19
)
20
20
21
- // CloneOptions describe how a clone should be perform
21
+ // CloneOptions describes how a clone should be performed
22
22
type CloneOptions struct {
23
23
// The (possibly remote) repository URL to clone from
24
24
URL string
@@ -34,7 +34,7 @@ type CloneOptions struct {
34
34
Depth int
35
35
}
36
36
37
- // Validate validate the fields and set the default values
37
+ // Validate validates the fields and sets the default values
38
38
func (o * CloneOptions ) Validate () error {
39
39
if o .URL == "" {
40
40
return ErrMissingURL
@@ -51,7 +51,7 @@ func (o *CloneOptions) Validate() error {
51
51
return nil
52
52
}
53
53
54
- // PullOptions describe how a pull should be perform.
54
+ // PullOptions describes how a pull should be performed
55
55
type PullOptions struct {
56
56
// Name of the remote to be pulled. If empty, uses the default.
57
57
RemoteName string
@@ -65,7 +65,7 @@ type PullOptions struct {
65
65
Auth transport.AuthMethod
66
66
}
67
67
68
- // Validate validate the fields and set the default values.
68
+ // Validate validates the fields and sets the default values.
69
69
func (o * PullOptions ) Validate () error {
70
70
if o .RemoteName == "" {
71
71
o .RemoteName = DefaultRemoteName
@@ -78,7 +78,7 @@ func (o *PullOptions) Validate() error {
78
78
return nil
79
79
}
80
80
81
- // FetchOptions describe how a fetch should be perform
81
+ // FetchOptions describes how a fetch should be performed
82
82
type FetchOptions struct {
83
83
// Name of the remote to fetch from. Defaults to origin.
84
84
RemoteName string
@@ -90,7 +90,7 @@ type FetchOptions struct {
90
90
Auth transport.AuthMethod
91
91
}
92
92
93
- // Validate validate the fields and set the default values
93
+ // Validate validates the fields and sets the default values
94
94
func (o * FetchOptions ) Validate () error {
95
95
if o .RemoteName == "" {
96
96
o .RemoteName = DefaultRemoteName
@@ -105,7 +105,7 @@ func (o *FetchOptions) Validate() error {
105
105
return nil
106
106
}
107
107
108
- // PushOptions describe how a push should be performed.
108
+ // PushOptions describes how a push should be performed
109
109
type PushOptions struct {
110
110
// RemoteName is the name of the remote to be pushed to.
111
111
RemoteName string
@@ -116,7 +116,7 @@ type PushOptions struct {
116
116
Auth transport.AuthMethod
117
117
}
118
118
119
- // Validate validate the fields and set the default values
119
+ // Validate validates the fields and sets the default values
120
120
func (o * PushOptions ) Validate () error {
121
121
if o .RemoteName == "" {
122
122
o .RemoteName = DefaultRemoteName
0 commit comments