diff options
Diffstat (limited to 'worktree.go')
-rw-r--r-- | worktree.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/worktree.go b/worktree.go index a14fd8d..dae40a3 100644 --- a/worktree.go +++ b/worktree.go @@ -152,17 +152,6 @@ func (w *Worktree) Checkout(opts *CheckoutOptions) error { } } - if !opts.Force { - unstaged, err := w.containsUnstagedChanges() - if err != nil { - return err - } - - if unstaged { - return ErrUnstagedChanges - } - } - c, err := w.getCommitFromCheckoutOptions(opts) if err != nil { return err |