(repoDir, path string)
| 20 | var multiNewline = regexp.MustCompile(`\n{3,}`) |
| 21 | |
| 22 | func resolveBackgroundFilePath(repoDir, path string) string { |
| 23 | if path == "" || filepath.IsAbs(path) { |
| 24 | return path |
| 25 | } |
| 26 | return filepath.Join(repoDir, path) |
| 27 | } |
| 28 | |
| 29 | // mergeBackground combines the inline --background value (or an auto-populated |
| 30 | // commit message) with the content read from --background-file, separated by a |
no outgoing calls