From 0389a6dd0ab0db6a70545f822522c86b3bde5cad Mon Sep 17 00:00:00 2001 From: Benjamin Nørgaard Date: Sun, 8 Oct 2017 22:28:20 +0200 Subject: Fix spelling Unstagged -> Unstaged --- worktree.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worktree.go') 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 } } -- cgit