parseMergeSuccessMessage constructs a success message after a merge.
(repoDir, branch string)
| 1982 | |
| 1983 | // parseMergeSuccessMessage constructs a success message after a merge. |
| 1984 | func parseMergeSuccessMessage(repoDir, branch string) string { |
| 1985 | // Try to get the default branch for display |
| 1986 | defaultBranch := "current branch" |
| 1987 | if db, err := git.GetDefaultBranch(repoDir); err == nil { |
| 1988 | defaultBranch = db |
| 1989 | } |
| 1990 | return fmt.Sprintf("Merged %s into %s", branch, defaultBranch) |
| 1991 | } |
| 1992 | |
| 1993 | // switchToPRD switches to a different PRD (view only - does not stop other loops). |
| 1994 | func (a App) switchToPRD(name, prdPath string) (tea.Model, tea.Cmd) { |
no test coverage detected