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

Fix typos in git docs #230

Merged
merged 1 commit into from
Jan 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

// Storer is a generic storage of objects, references and any information
// related to a particular repository. Some Storer implementations persist the
// information in an system directory (such as `.git`) and others
// implementations are in memmory being ephemeral
// information in a system directory (such as `.git`) and others
// implementations are in memory being ephemeral
type Storer interface {
storer.EncodedObjectStorer
storer.ReferenceStorer
Expand Down
16 changes: 8 additions & 8 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
ErrInvalidRefSpec = errors.New("invalid refspec")
)

// CloneOptions describe how a clone should be perform
// CloneOptions describes how a clone should be performed
type CloneOptions struct {
// The (possibly remote) repository URL to clone from
URL string
Expand All @@ -34,7 +34,7 @@ type CloneOptions struct {
Depth int
}

// Validate validate the fields and set the default values
// Validate validates the fields and sets the default values
func (o *CloneOptions) Validate() error {
if o.URL == "" {
return ErrMissingURL
Expand All @@ -51,7 +51,7 @@ func (o *CloneOptions) Validate() error {
return nil
}

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

// Validate validate the fields and set the default values.
// Validate validates the fields and sets the default values.
func (o *PullOptions) Validate() error {
if o.RemoteName == "" {
o.RemoteName = DefaultRemoteName
Expand All @@ -78,7 +78,7 @@ func (o *PullOptions) Validate() error {
return nil
}

// FetchOptions describe how a fetch should be perform
// FetchOptions describes how a fetch should be performed
type FetchOptions struct {
// Name of the remote to fetch from. Defaults to origin.
RemoteName string
Expand All @@ -90,7 +90,7 @@ type FetchOptions struct {
Auth transport.AuthMethod
}

// Validate validate the fields and set the default values
// Validate validates the fields and sets the default values
func (o *FetchOptions) Validate() error {
if o.RemoteName == "" {
o.RemoteName = DefaultRemoteName
Expand All @@ -105,7 +105,7 @@ func (o *FetchOptions) Validate() error {
return nil
}

// PushOptions describe how a push should be performed.
// PushOptions describes how a push should be performed
type PushOptions struct {
// RemoteName is the name of the remote to be pushed to.
RemoteName string
Expand All @@ -116,7 +116,7 @@ type PushOptions struct {
Auth transport.AuthMethod
}

// Validate validate the fields and set the default values
// Validate validates the fields and sets the default values
func (o *PushOptions) Validate() error {
if o.RemoteName == "" {
o.RemoteName = DefaultRemoteName
Expand Down