mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
21 lines
480 B
Go
21 lines
480 B
Go
package gui
|
|
|
|
func (gui *Gui) reflogCommitsRenderToMain() error {
|
|
commit := gui.State.Contexts.ReflogCommits.GetSelected()
|
|
var task updateTask
|
|
if commit == nil {
|
|
task = NewRenderStringTask("No reflog history")
|
|
} else {
|
|
cmdObj := gui.git.Commit.ShowCmdObj(commit.Sha, gui.State.Modes.Filtering.GetPath())
|
|
|
|
task = NewRunPtyTask(cmdObj.GetCmd())
|
|
}
|
|
|
|
return gui.refreshMainViews(refreshMainOpts{
|
|
main: &viewUpdateOpts{
|
|
title: "Reflog Entry",
|
|
task: task,
|
|
},
|
|
})
|
|
}
|