mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-08 22:36:49 +02:00
remove unused file
This commit is contained in:
@ -1,24 +0,0 @@
|
|||||||
package gui
|
|
||||||
|
|
||||||
import "github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
||||||
|
|
||||||
func (gui *Gui) reflogCommitsRenderToMain() error {
|
|
||||||
commit := gui.State.Contexts.ReflogCommits.GetSelected()
|
|
||||||
var task types.UpdateTask
|
|
||||||
if commit == nil {
|
|
||||||
task = types.NewRenderStringTask("No reflog history")
|
|
||||||
} else {
|
|
||||||
cmdObj := gui.git.Commit.ShowCmdObj(commit.Sha, gui.State.Modes.Filtering.GetPath(),
|
|
||||||
gui.IgnoreWhitespaceInDiffView)
|
|
||||||
|
|
||||||
task = types.NewRunPtyTask(cmdObj.GetCmd())
|
|
||||||
}
|
|
||||||
|
|
||||||
return gui.c.RenderToMainViews(types.RefreshMainOpts{
|
|
||||||
Pair: gui.c.MainViewPairs().Normal,
|
|
||||||
Main: &types.ViewUpdateOpts{
|
|
||||||
Title: "Reflog Entry",
|
|
||||||
Task: task,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
}
|
|
Reference in New Issue
Block a user