@@ -10,7 +10,6 @@ import (
1010 "github.com/jesseduffield/gocui"
1111 "github.com/jesseduffield/lazygit/pkg/commands/git_commands"
1212 "github.com/jesseduffield/lazygit/pkg/commands/models"
13- "github.com/jesseduffield/lazygit/pkg/commands/types/enums"
1413 "github.com/jesseduffield/lazygit/pkg/gui/types"
1514 "github.com/jesseduffield/lazygit/pkg/utils"
1615 "github.com/samber/lo"
@@ -51,7 +50,7 @@ func (self *MergeAndRebaseHelper) CreateRebaseOptionsMenu() error {
5150 {option : REBASE_OPTION_ABORT , key : 'a' },
5251 }
5352
54- if self .c .Git ().Status .WorkingTreeState () == enums .WORKING_TREE_STATE_REBASING {
53+ if self .c .Git ().Status .WorkingTreeState () == models .WORKING_TREE_STATE_REBASING {
5554 options = append (options , optionAndKey {
5655 option : REBASE_OPTION_SKIP , key : 's' ,
5756 })
@@ -78,12 +77,12 @@ func (self *MergeAndRebaseHelper) ContinueRebase() error {
7877func (self * MergeAndRebaseHelper ) genericMergeCommand (command string ) error {
7978 status := self .c .Git ().Status .WorkingTreeState ()
8079
81- if status != enums .WORKING_TREE_STATE_MERGING && status != enums .WORKING_TREE_STATE_REBASING {
80+ if status != models .WORKING_TREE_STATE_MERGING && status != models .WORKING_TREE_STATE_REBASING {
8281 return errors .New (self .c .Tr .NotMergingOrRebasing )
8382 }
8483
8584 self .c .LogAction (fmt .Sprintf ("Merge/Rebase: %s" , command ))
86- if status == enums .WORKING_TREE_STATE_REBASING {
85+ if status == models .WORKING_TREE_STATE_REBASING {
8786 todoFile , err := os .ReadFile (
8887 filepath .Join (self .c .Git ().RepoPaths .WorktreeGitDirPath (), "rebase-merge/git-rebase-todo" ),
8988 )
@@ -102,10 +101,10 @@ func (self *MergeAndRebaseHelper) genericMergeCommand(command string) error {
102101 // we should end up with a command like 'git merge --continue'
103102
104103 // it's impossible for a rebase to require a commit so we'll use a subprocess only if it's a merge
105- needsSubprocess := (status == enums .WORKING_TREE_STATE_MERGING && command != REBASE_OPTION_ABORT && self .c .UserConfig ().Git .Merging .ManualCommit ) ||
104+ needsSubprocess := (status == models .WORKING_TREE_STATE_MERGING && command != REBASE_OPTION_ABORT && self .c .UserConfig ().Git .Merging .ManualCommit ) ||
106105 // but we'll also use a subprocess if we have exec todos; those are likely to be lengthy build
107106 // tasks whose output the user will want to see in the terminal
108- (status == enums .WORKING_TREE_STATE_REBASING && command != REBASE_OPTION_ABORT && self .hasExecTodos ())
107+ (status == models .WORKING_TREE_STATE_REBASING && command != REBASE_OPTION_ABORT && self .hasExecTodos ())
109108
110109 if needsSubprocess {
111110 // TODO: see if we should be calling more of the code from self.Git.Rebase.GenericMergeOrRebaseAction
0 commit comments