Skip to content

Commit

Permalink
Fix Typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitten King committed Jul 24, 2019
1 parent 9c08eb1 commit f5f712b
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ type Values struct {
}

// NewFrom returns a new `*config.Configuration` that reads both its Git
// and Enviornment-level values from the ones provided instead of the actual
// and Environment-level values from the ones provided instead of the actual
// `.gitconfig` file or `os.Getenv`, respectively.
//
// This method should only be used during testing.
Expand Down
2 changes: 1 addition & 1 deletion config/delayed_environment.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
// delayedEnvironment is an implementation of the Environment which wraps the legacy
// behavior of `*config.Configuration.loadGitConfig()`.
//
// It is functionally equivelant to call `cfg.loadGitConfig()` before calling
// It is functionally equivalent to call `cfg.loadGitConfig()` before calling
// methods on the Environment type.
type delayedEnvironment struct {
env Environment
Expand Down
2 changes: 1 addition & 1 deletion config/fetcher.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

// Fetcher provides an interface to get typed information out of a configuration
// "source". These sources could be the OS enviornment, a .gitconfig, or even
// "source". These sources could be the OS environment, a .gitconfig, or even
// just a `map`.
type Fetcher interface {
// Get returns the string value associated with a given key and a bool
Expand Down
2 changes: 1 addition & 1 deletion config/os_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
type OsFetcher struct {
// vmu guards read/write access to vals
vmu sync.Mutex
// vals maintains a local cache of the system's enviornment variables
// vals maintains a local cache of the system's environment variables
// for fast repeat lookups of a given key.
vals map[string]*string
}
Expand Down
2 changes: 1 addition & 1 deletion docker/run_dockers.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ./run_dockers.bsh centos_6 centos_7 - Run only CentOS 6 & 7 image
# ./run_dockers.bsh centos_6 -- bash #Runs bash in the CentOS 6 docker
#
# Special Environmet Variables
# Special Environments Variables
# REPO_HOSTNAME - Override the hostname for all the repos generated/tested
# DOCKER_AUTOPULL - Default 1. If set to 0, it will not build docker images
# before running
Expand Down
2 changes: 1 addition & 1 deletion docs/proposals/locking.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ type LockList struct {
// `LockListRequest`.
NextCursor string `json:"next_cursor,omitempty"`
// Err populates any error that was encountered during the search. If no
// error was encountered and the operation was succesful, then a value
// error was encountered and the operation was successful, then a value
// of nil will be passed here.
Err error `json:"error,omitempty"`
}
4 changes: 2 additions & 2 deletions docs/proposals/locking_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
< }
```

* **Bad repsonse: server error**
* **Bad response: server error**
```
< HTTP/1.1 500 Internal server error
< Content-Type: application/vnd.git-lfs+json
Expand All @@ -93,7 +93,7 @@
> Authorization: Basic
```

### Repsonse
### Response

* **Success: unlocked**
```
Expand Down
2 changes: 1 addition & 1 deletion docs/proposals/ntlm.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ go through the ntlm auth flow.

We will store NTLM credentials in the credential helper. When the user is prompted for their credentials they must use username:{DOMAIN}\{user} and password:{pass}

The ntlm protocl will be handled by an ntlm.go class that hides the implementation of InitHandshake, Authenticate, and Challenge. This allows miminal changesto the existing
The ntlm protocol will be handled by an ntlm.go class that hides the implementation of InitHandshake, Authenticate, and Challenge. This allows miminal changesto the existing
client.go class.

### Tech
Expand Down
2 changes: 1 addition & 1 deletion git/githistory/fixtures_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

// DatabaseFromFixture returns a *gitobj.ObjectDatabase instance that is safely
// mutable and created from a template equivelant to the fixture that you
// mutable and created from a template equivalent to the fixture that you
// provided it.
//
// If any error was encountered, it will call t.Fatalf() immediately.
Expand Down
2 changes: 1 addition & 1 deletion lfshttp/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *Client) LogHTTPStats(w io.WriteCloser) {
}

// LogStats is intended to be called after all HTTP operations for the
// commmand have finished. It dumps k/v logs, one line per httpTransfer into
// command have finished. It dumps k/v logs, one line per httpTransfer into
// a log file with the current timestamp.
//
// DEPRECATED: Call LogHTTPStats() before the first HTTP request.
Expand Down
4 changes: 2 additions & 2 deletions locking/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ type lockList struct {
// `LockListRequest`.
NextCursor string `json:"next_cursor,omitempty"`
// Message populates any error that was encountered during the search. If no
// error was encountered and the operation was succesful, then a value
// error was encountered and the operation was successful, then a value
// of nil will be passed here.
Message string `json:"message,omitempty"`
DocumentationURL string `json:"documentation_url,omitempty"`
Expand Down Expand Up @@ -238,7 +238,7 @@ type lockVerifiableList struct {
// `LockListRequest`.
NextCursor string `json:"next_cursor,omitempty"`
// Message populates any error that was encountered during the search. If no
// error was encountered and the operation was succesful, then a value
// error was encountered and the operation was successful, then a value
// of nil will be passed here.
Message string `json:"message,omitempty"`
DocumentationURL string `json:"documentation_url,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion locking/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (c *LockCache) Add(l Lock) error {
return nil
}

// Remove a cached lock by path becuase it's been relinquished
// Remove a cached lock by path because it's been relinquished
func (c *LockCache) RemoveByPath(filePath string) error {
ilock := c.kv.Get(filePath)
if lock, ok := ilock.(*Lock); ok && lock != nil {
Expand Down
2 changes: 1 addition & 1 deletion locking/locks.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func (c *Client) searchRemoteLocks(filter map[string]string, limit int) ([]Lock,
//
// If the API call failed, an error will be returned. If multiple locks matched
// the given path (should not happen during real-world usage), an error will be
// returnd. If no locks matched the given path, an error will be returned.
// returned. If no locks matched the given path, an error will be returned.
//
// If the API call is successful, and only one lock matches the given filepath,
// then its ID will be returned, along with a value of "nil" for the error.
Expand Down
2 changes: 1 addition & 1 deletion rpm/build_rpms.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ touch ${CURDIR}/SOURCES/RPM-GPG-KEY-GITLFS

echo "Build git-lfs rpm..."

#--no-deps added for now so you can compile without offical rpms installed
#--no-deps added for now so you can compile without official rpms installed
"${RPMBUILD[@]}" --nodeps -ba ${CURDIR}/SPECS/git-lfs.spec

echo "All Done!"
2 changes: 1 addition & 1 deletion t/cmd/util/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (r *Repo) AddRemote(name string) *Repo {
return remote
}

// Just a psuedo-random stream of bytes (not cryptographic)
// Just a pseudo-random stream of bytes (not cryptographic)
// Calls RNG a bit less often than using rand.Source directly
type PlaceholderDataReader struct {
source rand.Source
Expand Down
2 changes: 1 addition & 1 deletion t/t-credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ensure_git_version_isnt $VERSION_LOWER "2.3.0"

begin_test "credentails with url-specific helper skips askpass"
begin_test "credentials with url-specific helper skips askpass"
(
set -e

Expand Down
2 changes: 1 addition & 1 deletion t/t-duplicate-oids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ begin_test "multiple revs with same OID get pushed once"
(
set -e

reponame="mutliple-revs-one-oid"
reponame="multiple-revs-one-oid"
setup_remote_repo "$reponame"
clone_repo "$reponame" "$reponame"

Expand Down
2 changes: 1 addition & 1 deletion tasklog/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func ForceProgress(v bool) Option {
}
}

// NewLogger retuns a new *Logger instance that logs to "sink" and uses the
// NewLogger returns a new *Logger instance that logs to "sink" and uses the
// current terminal width as the width of the line. Will log progress status if
// stdout is a terminal or if forceProgress is true
func NewLogger(sink io.Writer, options ...Option) *Logger {
Expand Down
2 changes: 1 addition & 1 deletion tools/stringset.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (set StringSet) Iter() <-chan string {

// Equal determines if two sets are equal to each other.
// If they both are the same size and have the same items they are considered equal.
// Order of items is not relevent for sets to be equal.
// Order of items is not relevant for sets to be equal.
func (set StringSet) Equal(other StringSet) bool {
if set.Cardinality() != other.Cardinality() {
return false
Expand Down
2 changes: 1 addition & 1 deletion tq/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (a *customAdapter) Begin(cfg AdapterConfig, cb ProgressCallback) error {
}

func (a *customAdapter) ClearTempStorage() error {
// no action requred
// no action required
return nil
}

Expand Down

0 comments on commit f5f712b

Please sign in to comment.