blob: 371b533fea9311072120b611a0b5a5f81e115cd4 (
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.FullRefName())
task = NewRunCommandTask(cmdObj.GetCmd())
}
return self.refreshMainViews(refreshMainOpts{
main: &viewUpdateOpts{
title: "Tag",
task: task,
},
})
}
|