blob: 9757fdc77a5b35dd0ab4f44810f99322a2ae4de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package gui
func (self *Gui) tagsRenderToMain() error {
var task updateTask
tag := self.State.Contexts.Tags.GetSelected()
if tag == nil {
task = NewRenderStringTask("No tags")
} else {
cmdObj := self.git.Branch.GetGraphCmdObj(tag.Name)
task = NewRunCommandTask(cmdObj.GetCmd())
}
return self.refreshMainViews(refreshMainOpts{
main: &viewUpdateOpts{
title: "Tag",
task: task,
},
})
}
|