diff options
author | Benjamin Nørgaard <b@noergaard.dk> | 2017-10-08 22:28:20 +0200 |
---|---|---|
committer | Benjamin Nørgaard <b@noergaard.dk> | 2017-10-08 22:28:20 +0200 |
commit | 0389a6dd0ab0db6a70545f822522c86b3bde5cad (patch) | |
tree | 0600c63ac4c2afcd205f7d3cd7e359aea8510a80 | |
parent | a99c1291da1bf5c4ae8fada815231922f106bb70 (diff) | |
download | go-git-0389a6dd0ab0db6a70545f822522c86b3bde5cad.tar.gz |
Fix spelling Unstagged -> Unstaged
-rw-r--r-- | worktree.go | 6 | ||||
-rw-r--r-- | worktree_test.go | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/worktree.go b/worktree.go index e2f8562..d2630b7 100644 --- a/worktree.go +++ b/worktree.go @@ -25,7 +25,7 @@ import ( var ( ErrWorktreeNotClean = errors.New("worktree is not clean") ErrSubmoduleNotFound = errors.New("submodule not found") - ErrUnstaggedChanges = errors.New("worktree contains unstagged changes") + ErrUnstagedChanges = errors.New("worktree contains unstaged changes") ) // Worktree represents a git worktree. @@ -152,7 +152,7 @@ func (w *Worktree) Checkout(opts *CheckoutOptions) error { } if unstaged { - return ErrUnstaggedChanges + return ErrUnstagedChanges } } @@ -269,7 +269,7 @@ func (w *Worktree) Reset(opts *ResetOptions) error { } if unstaged { - return ErrUnstaggedChanges + return ErrUnstagedChanges } } diff --git a/worktree_test.go b/worktree_test.go index 7d9c617..fb71873 100644 --- a/worktree_test.go +++ b/worktree_test.go @@ -813,7 +813,7 @@ func (s *WorktreeSuite) TestResetMerge(c *C) { c.Assert(err, IsNil) err = w.Reset(&ResetOptions{Mode: MergeReset, Commit: commitB}) - c.Assert(err, Equals, ErrUnstaggedChanges) + c.Assert(err, Equals, ErrUnstagedChanges) branch, err = w.r.Reference(plumbing.Master, false) c.Assert(err, IsNil) |