This repository was archived by the owner on Sep 11, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525var (
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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments