diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 12:08:13 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-28 13:19:35 +1100 |
commit | a9559a5c8738d6938f8750f0729f077e0842800e (patch) | |
tree | 6bf8ae15c80891325227261d46880d5f2e553c0b /pkg/gui/undoing.go | |
parent | 814ee24c8d13ae554925530ec68f325394ddfe6d (diff) |
move working tree state function into git.go
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r-- | pkg/gui/undoing.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go index 3ef863539..9ce7f7b0e 100644 --- a/pkg/gui/undoing.go +++ b/pkg/gui/undoing.go @@ -87,7 +87,7 @@ func (gui *Gui) reflogUndo(g *gocui.Gui, v *gocui.View) error { undoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit undo]"} undoingStatus := gui.Tr.SLocalize("UndoingStatus") - if gui.workingTreeState() == "rebasing" { + if gui.GitCommand.WorkingTreeState() == "rebasing" { return gui.createErrorPanel(gui.Tr.SLocalize("cantUndoWhileRebasing")) } @@ -118,7 +118,7 @@ func (gui *Gui) reflogRedo(g *gocui.Gui, v *gocui.View) error { redoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit redo]"} redoingStatus := gui.Tr.SLocalize("RedoingStatus") - if gui.workingTreeState() == "rebasing" { + if gui.GitCommand.WorkingTreeState() == "rebasing" { return gui.createErrorPanel(gui.Tr.SLocalize("cantRedoWhileRebasing")) } |