MCPcopy Index your code
hub / github.com/git-bug/git-bug / openBug

Method openBug

termui/bug_table.go:449–461  ·  view source on GitHub ↗
(g *gocui.Gui, v *gocui.View)

Source from the content-addressed store, hash-verified

447}
448
449func (bt *bugTable) openBug(g *gocui.Gui, v *gocui.View) error {
450 if len(bt.excerpts) == 0 {
451 // There are no open bugs, just do nothing
452 return nil
453 }
454 id := bt.excerpts[bt.selectCursor].Id()
455 b, err := bt.repo.Bugs().Resolve(id)
456 if err != nil {
457 return err
458 }
459 ui.showBug.SetBug(b)
460 return ui.activateWindow(ui.showBug)
461}
462
463func (bt *bugTable) pull(g *gocui.Gui, v *gocui.View) error {
464 ui.msgPopup.Activate("Pull from remote "+defaultRemote, "...")

Callers

nothing calls this directly

Calls 5

BugsMethod · 0.80
activateWindowMethod · 0.80
IdMethod · 0.65
ResolveMethod · 0.65
SetBugMethod · 0.45

Tested by

no test coverage detected