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

Method push

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

Source from the content-addressed store, hash-verified

518}
519
520func (bt *bugTable) push(g *gocui.Gui, v *gocui.View) error {
521 ui.msgPopup.Activate("Push to remote "+defaultRemote, "...")
522
523 go func() {
524 // TODO: make the remote configurable
525 stdout, err := bt.repo.Push(defaultRemote)
526
527 if err != nil {
528 g.Update(func(gui *gocui.Gui) error {
529 ui.msgPopup.Activate(msgPopupErrorTitle, err.Error())
530 return nil
531 })
532 } else {
533 g.Update(func(gui *gocui.Gui) error {
534 ui.msgPopup.UpdateMessage(stdout)
535 return nil
536 })
537 }
538 }()
539
540 return nil
541}
542
543func (bt *bugTable) changeQuery(g *gocui.Gui, v *gocui.View) error {
544 return editQueryWithEditor(bt)

Callers 1

parseFunction · 0.80

Calls 4

PushMethod · 0.80
UpdateMessageMethod · 0.80
ActivateMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected