(from, to, commit string)
| 90 | } |
| 91 | |
| 92 | func reviewModeString(from, to, commit string) string { |
| 93 | if commit != "" { |
| 94 | return session.ReviewModeCommit |
| 95 | } |
| 96 | if from != "" && to != "" { |
| 97 | return session.ReviewModeRange |
| 98 | } |
| 99 | return session.ReviewModeWorkspace |
| 100 | } |
| 101 | |
| 102 | // detectGitBranch returns the current git branch name for the given repo, or empty string on failure. |
| 103 | func detectGitBranch(ctx context.Context, repoDir string) string { |
no outgoing calls