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

Fix typo #1299

Closed
wants to merge 2 commits into from
Closed
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
16 changes: 8 additions & 8 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import (
"gopkg.in/src-d/go-git.v4/plumbing/transport"
)

// SubmoduleRescursivity defines how depth will affect any submodule recursive
// SubmoduleRecursivity defines how depth will affect any submodule recursive
// operation.
type SubmoduleRescursivity uint
type SubmoduleRecursivity uint

const (
// DefaultRemoteName name of the default Remote, just like git command.
DefaultRemoteName = "origin"

// NoRecurseSubmodules disables the recursion for a submodule operation.
NoRecurseSubmodules SubmoduleRescursivity = 0
NoRecurseSubmodules SubmoduleRecursivity = 0
// DefaultSubmoduleRecursionDepth allow recursion in a submodule operation.
DefaultSubmoduleRecursionDepth SubmoduleRescursivity = 10
DefaultSubmoduleRecursionDepth SubmoduleRecursivity = 10
)

var (
Expand All @@ -51,7 +51,7 @@ type CloneOptions struct {
// RecurseSubmodules after the clone is created, initialize all submodules
// within, using their default settings. This option is ignored if the
// cloned repository does not have a worktree.
RecurseSubmodules SubmoduleRescursivity
RecurseSubmodules SubmoduleRecursivity
// Progress is where the human readable information sent by the server is
// stored, if nil nothing is stored and the capability (if supported)
// no-progress, is sent to the server to avoid send this information.
Expand Down Expand Up @@ -96,7 +96,7 @@ type PullOptions struct {
Auth transport.AuthMethod
// RecurseSubmodules controls if new commits of all populated submodules
// should be fetched too.
RecurseSubmodules SubmoduleRescursivity
RecurseSubmodules SubmoduleRecursivity
// Progress is where the human readable information sent by the server is
// stored, if nil nothing is stored and the capability (if supported)
// no-progress, is sent to the server to avoid send this information.
Expand Down Expand Up @@ -222,8 +222,8 @@ type SubmoduleUpdateOptions struct {
NoFetch bool
// RecurseSubmodules the update is performed not only in the submodules of
// the current repository but also in any nested submodules inside those
// submodules (and so on). Until the SubmoduleRescursivity is reached.
RecurseSubmodules SubmoduleRescursivity
// submodules (and so on). Until the SubmoduleRecursivity is reached.
RecurseSubmodules SubmoduleRecursivity
// Auth credentials, if required, to use with the remote repository.
Auth transport.AuthMethod
}
Expand Down