Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 5eadb67

Browse files
Serabemcuadros
authored andcommitted
Fix typos in git docs (#230)
1 parent 4e53c11 commit 5eadb67

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
// Storer is a generic storage of objects, references and any information
1111
// related to a particular repository. Some Storer implementations persist the
12-
// information in an system directory (such as `.git`) and others
13-
// implementations are in memmory being ephemeral
12+
// information in a system directory (such as `.git`) and others
13+
// implementations are in memory being ephemeral
1414
type Storer interface {
1515
storer.EncodedObjectStorer
1616
storer.ReferenceStorer

options.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var (
1818
ErrInvalidRefSpec = errors.New("invalid refspec")
1919
)
2020

21-
// CloneOptions describe how a clone should be perform
21+
// CloneOptions describes how a clone should be performed
2222
type CloneOptions struct {
2323
// The (possibly remote) repository URL to clone from
2424
URL string
@@ -34,7 +34,7 @@ type CloneOptions struct {
3434
Depth int
3535
}
3636

37-
// Validate validate the fields and set the default values
37+
// Validate validates the fields and sets the default values
3838
func (o *CloneOptions) Validate() error {
3939
if o.URL == "" {
4040
return ErrMissingURL
@@ -51,7 +51,7 @@ func (o *CloneOptions) Validate() error {
5151
return nil
5252
}
5353

54-
// PullOptions describe how a pull should be perform.
54+
// PullOptions describes how a pull should be performed
5555
type PullOptions struct {
5656
// Name of the remote to be pulled. If empty, uses the default.
5757
RemoteName string
@@ -65,7 +65,7 @@ type PullOptions struct {
6565
Auth transport.AuthMethod
6666
}
6767

68-
// Validate validate the fields and set the default values.
68+
// Validate validates the fields and sets the default values.
6969
func (o *PullOptions) Validate() error {
7070
if o.RemoteName == "" {
7171
o.RemoteName = DefaultRemoteName
@@ -78,7 +78,7 @@ func (o *PullOptions) Validate() error {
7878
return nil
7979
}
8080

81-
// FetchOptions describe how a fetch should be perform
81+
// FetchOptions describes how a fetch should be performed
8282
type FetchOptions struct {
8383
// Name of the remote to fetch from. Defaults to origin.
8484
RemoteName string
@@ -90,7 +90,7 @@ type FetchOptions struct {
9090
Auth transport.AuthMethod
9191
}
9292

93-
// Validate validate the fields and set the default values
93+
// Validate validates the fields and sets the default values
9494
func (o *FetchOptions) Validate() error {
9595
if o.RemoteName == "" {
9696
o.RemoteName = DefaultRemoteName
@@ -105,7 +105,7 @@ func (o *FetchOptions) Validate() error {
105105
return nil
106106
}
107107

108-
// PushOptions describe how a push should be performed.
108+
// PushOptions describes how a push should be performed
109109
type PushOptions struct {
110110
// RemoteName is the name of the remote to be pushed to.
111111
RemoteName string
@@ -116,7 +116,7 @@ type PushOptions struct {
116116
Auth transport.AuthMethod
117117
}
118118

119-
// Validate validate the fields and set the default values
119+
// Validate validates the fields and sets the default values
120120
func (o *PushOptions) Validate() error {
121121
if o.RemoteName == "" {
122122
o.RemoteName = DefaultRemoteName

0 commit comments

Comments
 (0)