(root string)
| 596 | } |
| 597 | |
| 598 | func gitCurrentBranch(root string) (string, bool) { |
| 599 | cmd := exec.Command("git", "rev-parse", "--abbrev-ref", "HEAD") |
| 600 | cmd.Dir = root |
| 601 | out, err := cmd.Output() |
| 602 | if err != nil { |
| 603 | return "", false |
| 604 | } |
| 605 | branch := strings.TrimSpace(string(out)) |
| 606 | if branch == "" { |
| 607 | return "", false |
| 608 | } |
| 609 | return branch, true |
| 610 | } |
| 611 | |
| 612 | func showRecentHandoffSummary(artifact *handoff.Artifact) { |
| 613 | if artifact == nil { |
no outgoing calls