mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-17 01:42:45 +02:00
remove dead code
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
package gui
|
package gui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jesseduffield/lazygit/pkg/commands/loaders"
|
|
||||||
"github.com/jesseduffield/lazygit/pkg/gui/controllers"
|
"github.com/jesseduffield/lazygit/pkg/gui/controllers"
|
||||||
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||||
)
|
)
|
||||||
@ -69,27 +68,6 @@ func (gui *Gui) handleViewSubCommitFiles() error {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) switchToSubCommitsContext(refName string) error {
|
|
||||||
// need to populate my sub commits
|
|
||||||
commits, err := gui.git.Loaders.Commits.GetCommits(
|
|
||||||
loaders.GetCommitsOptions{
|
|
||||||
Limit: true,
|
|
||||||
FilterPath: gui.State.Modes.Filtering.GetPath(),
|
|
||||||
IncludeRebaseCommits: false,
|
|
||||||
RefName: refName,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
gui.State.Model.SubCommits = commits
|
|
||||||
gui.State.Contexts.SubCommits.SetSelectedLineIdx(0)
|
|
||||||
gui.State.Contexts.SubCommits.SetParentContext(gui.currentSideListContext())
|
|
||||||
|
|
||||||
return gui.c.PushContext(gui.State.Contexts.SubCommits)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (gui *Gui) handleNewBranchOffSubCommit() error {
|
func (gui *Gui) handleNewBranchOffSubCommit() error {
|
||||||
commit := gui.State.Contexts.SubCommits.GetSelected()
|
commit := gui.State.Contexts.SubCommits.GetSelected()
|
||||||
if commit == nil {
|
if commit == nil {
|
||||||
|
Reference in New Issue
Block a user