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

Commit d90adeb

Browse files
authored
Merge pull request #615 from blacksails/master
Fix spelling Unstagged -> Unstaged
2 parents a99c129 + 0389a6d commit d90adeb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

worktree.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
var (
2626
ErrWorktreeNotClean = errors.New("worktree is not clean")
2727
ErrSubmoduleNotFound = errors.New("submodule not found")
28-
ErrUnstaggedChanges = errors.New("worktree contains unstagged changes")
28+
ErrUnstagedChanges = errors.New("worktree contains unstaged changes")
2929
)
3030

3131
// Worktree represents a git worktree.
@@ -152,7 +152,7 @@ func (w *Worktree) Checkout(opts *CheckoutOptions) error {
152152
}
153153

154154
if unstaged {
155-
return ErrUnstaggedChanges
155+
return ErrUnstagedChanges
156156
}
157157
}
158158

@@ -269,7 +269,7 @@ func (w *Worktree) Reset(opts *ResetOptions) error {
269269
}
270270

271271
if unstaged {
272-
return ErrUnstaggedChanges
272+
return ErrUnstagedChanges
273273
}
274274
}
275275

worktree_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ func (s *WorktreeSuite) TestResetMerge(c *C) {
813813
c.Assert(err, IsNil)
814814

815815
err = w.Reset(&ResetOptions{Mode: MergeReset, Commit: commitB})
816-
c.Assert(err, Equals, ErrUnstaggedChanges)
816+
c.Assert(err, Equals, ErrUnstagedChanges)
817817

818818
branch, err = w.r.Reference(plumbing.Master, false)
819819
c.Assert(err, IsNil)

0 commit comments

Comments
 (0)